Continuous content?

Discussion in 'CSS' started by le007, Mar 21, 2009.

  1. #1
    Hi all -
    i have dynamic content in a div that may extend down longer than the div height - the problem is the div background colour doesnt extend with the content - any way around this?
    Should I use a table and <TD> or.....?
    Thanks
     
    le007, Mar 21, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    So, don't set the height on the div. It's usually a bad idea anyway.

    cheers,

    gary
     
    kk5st, Mar 21, 2009 IP
  3. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Thanks Gary. Yeah I did that but now the div doesnt even have a background - any other ideas?
     
    le007, Mar 22, 2009 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    I'd guess you have out of the flow content, e.g. floats. Show us the code; better yet, a link to the page.

    cheers,

    gary
     
    kk5st, Mar 22, 2009 IP
  5. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Worked like a charm Gary thanks - have another issue now I'll post a new thread. Thanks again Gary
     
    le007, Mar 22, 2009 IP