[snip]
> In any case, you also need to have:
>
> html, body {
> height:100%;
> min-height:100%;
> }
>
> to make whatever div you're using go to 100% also.
>
> :)
>
> ~Shelly
[/snip]

Um, you only need this if the div you're trying to size doesn't have a
parent with a height setting. Else this could have some unpredictable
results on some layouts (think a footer that the user DOESN'T want
aligned to the bottom of the nav window if there isn't enough content
*dunno why, but there's no accounting for taste*). In fact, I would nix
the idea of the html body element all together because if you're sizing
a div's height and it isn't working as you anticipate, it'll be easier
to debug (because you probably DID want to set a height for its parent
but just forgot to).

Also, this technique doesn't work if you want min-height to be a static
value as the standards compliant browsers will render the element at the
static height and never resize it. Just in case someone decides to try
this technique for liquid images, etc. ;)

But, it's a good way to shave off a couple bytes of file size if you
want the settings to be 100%.

-- 
Thanks,

Jim


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to