SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <div> doesn't include all content

    Oh dear. I should know the answer and I know it's bound to have been asked before, but I can't find the answer.

    I want my wrapper div to include everything, including my footer area. I know it's because of the floated elements and I thought adding a clear:both in the footer would solve it, but it doesn't.

    http://www.littleberkhamsted.org.uk/

    C
    an some kind soul enlighten me please...
    blessed are the cracked for they let in the light

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    If you put overflow:hidden; on the <div>, that will ensure that it extends to include all floated child elements.

  3. #3
    SitePoint Evangelist
    Join Date
    Jul 2002
    Location
    Italy
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool. Many thanks Stevie.
    blessed are the cracked for they let in the light


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •