Results 1 to 1 of 1
  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default Fill vertical space between two divs?

    Yo.

    So I have some example code below and was wondering if anyone could tell me how I would get the #content div to fill up all the vertical space between #header and #footer?

    Many thanks

    Code:
    <div id="container">
         <div id="header"></div>
         <div id="content"></div>
         <div id="footer"></div>
    </div>
    Code:
    #container {
         margin: 0px;
         padding: 0px;
         min-height: 100%;
         width: 900px;
    }
    
    #header {
         width: 900px;
         height: 100px;#
         top: 0px;
    }
    
    #content {
         width: 100px;
    }
    
    #footer {
         position: absolute;
         bottom: 0px;
         width: 900px;
         height: 15px;
    }
    Last edited by HotelUser; 13-11-2010 at 11:20 PM.

Posting Permissions

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