SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS layout question.

    How can I make it so the main content div always extends to the top of the footer?

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set it to the height of viewport ( keep in mind to set 100% height on html, body, and the wrapper ) and then subtract it using negative margins. The footer needs to be a sibling of the wrapper/content div ( not a child ) if this is to be used ( not absolute positioning ).
    Cross browser css bugs

    Dan Schulz you will be missed

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Read the faq on putting a footer at the bottom for full details or copy this


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
  •