Daniel Haude:
Bertilo Wennergren <be******@gmx.n et> wrote
In CSS (preferrably in an external file) you can write this:
table { height: 100%; }
I can, and I did, but it didn't do anything (in Opera. I haven't
gotten around to testing with other browsers yet). That's why I
asked.
It probaly does work, but not in the way you intended. The table
probably takes up 100% of the height _of its parent_. That parent is
probably the "body". But the body has probably just as much height as is
needed, which might not be the entire viewport. So you might need to set
100% height for "body" as well:
body { height: 100%; }
And if you're using XHTML you might need to set 100% height for the
parent of "body" as well:
html { height: 100%; }
Watch out for margin and padding. You might wind up making body or html
higher than the entire viewport. So add a few doses of "margin: 0" and
"padding: 0".
This is insidious stuff, and I'm not sure I understand everything about it.
--
Bertilo Wennergren <be******@gmx.n et> <http://www.bertilow.co m>