[Javascript] Table height in Mozilla
Peter Brunone
peter at brunone.com
Thu Apr 1 14:08:25 CST 2004
No effect in Netscape 7.1 or Mozilla 1.5.
Adding height:100% to the style attribute of the master table
didn't help either; this is so weird.
-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of Håkan Magnusson
Add this to your stylesheet:
body, html {
height: 100%;
margin: 0;
}
In Mozilla, the body height is the content height, so "100%" does not
mean "100% of my viewport window" but "100% of my body content".
Peter Brunone wrote:
> This isn't specifically a Javascript question, but I hoped
somebody
> here would have a quick answer. In IE, when I want my table to fill
> the page, I set the height attribute equal to "100%" and it stretches
> from the top of the window to the bottom (unless the content makes it
> longer).
> In Mozilla, however, my table shrinks vertically to fit the
content.
> The URL is
>
> http://stage.easylistbox.com/
>
> What am I missing?
>
> Cheers,
>
> Peter Brunone
More information about the Javascript
mailing list