www.webdeveloper.com
Results 1 to 3 of 3

Thread: CSS 100% height

  1. #1
    Join Date
    May 2009
    Posts
    16

    CSS 100% height

    I'm working on a site where I need #shell to expand to the bottom of the page.

    I've adjusted it so that the body itself should be 100% so that the #shell within the body should be 100% too:

    html{min-height:100%}
    body{height:100%}
    #shell{100%}

    However, this isn't working! When I check the page in firefox and bring out the cssViewer plugin, it says the height is 714px... Nowhere in any of the css is the height 714px written. Why would it display with such an arbitrary height? And how do I get it to fit 100% of the height?

    Thanks!

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <style type="text/css">
    * {margin:0;border:0;}
    html, body, #shell {height:100&#37;;}
    </style>
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Sep 2005
    Posts
    1,625
    When is used #shell {height:100&#37;;}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles