CSS div height 100%

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
i'm writing this only because i spent a good two days endlessly trying
to solve this problem and couldn't find anything on the internet that
actually helped.  I eventually figured out the solution, as no doubt so
does everyone (hence the solution never actually being posted: it seems
too obvious to bother)... but had i found it sooner, i would have been
happy, so here goes:

if you're trying to get a CSS div to span the total height of the
window and scrolling is likely to be involved (for instance, a menu
sidebar), don't use the height: 100% tag!  set  margin-top: 0px and

Re: CSS div height 100%

In article
 jaschreiber@gmail.com wrote:

Quoted text here. Click to load it

Why use any height at all?


Re: CSS div height 100%

To further the education of mankind, jaschreiber@gmail.com vouchsafed:

Quoted text here. Click to load it
Hmm.  What if you just don't want any horizontal margins on the div?

Infinity has its limits.

Site Timeline