trouble wrapping text written under a "class"

Discussion in 'CSS' started by cowboyhugbees, Mar 13, 2010.

  1. #1
    hi everyone;

    i'm having trouble trying to figure out how to wrap a text under a float. normally, if the text was in the "body" tag, it will wrap correctly underneath the side of the float. however, because my text is in a "class", it doesn't want to wrap for some reason.

    my site in progress is here: http://gemini-comic.smackjeeves.com/

    i thikn you'll see what i'm talking about.

    thanks a lot for your help.
     
    cowboyhugbees, Mar 13, 2010 IP
  2. hangbowl

    hangbowl Well-Known Member

    Messages:
    228
    Likes Received:
    3
    Best Answers:
    4
    Trophy Points:
    143
    Digital Goods:
    2
    #2
    try to find this class
    
    .commentcontent {
    height:200px;
    min-height:100px;
    padding:2px 20px 5px;
    text-align:left;
    }
    
    HTML:
    and

    
    .comment {
    height:300px;
    min-height:100px;
    overflow:hidden;
    }
    
    HTML:
    delete the height paramatere
     
    hangbowl, Mar 14, 2010 IP
  3. cowboyhugbees

    cowboyhugbees Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, that didn't do what i wanted, though. i was trying to go for an "L" shape, but the more i read about it, the more i realize its pretty much impossible with standard CSS.

    any idea why my text-overflow: ellipsis doesn't work? i'm using IE 8 mainly
     
    cowboyhugbees, Mar 14, 2010 IP
  4. dabzo

    dabzo Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Wow man, try externalizing your css. ;)
     
    dabzo, Mar 14, 2010 IP
  5. hangbowl

    hangbowl Well-Known Member

    Messages:
    228
    Likes Received:
    3
    Best Answers:
    4
    Trophy Points:
    143
    Digital Goods:
    2
    #5
    hmmmm isuggesting that because your content is fixed height.
    try to use float
     
    hangbowl, Mar 14, 2010 IP