Click to See Complete Forum and Search --> : Page Height in Explorer
csl-erik
04-14-2004, 01:43 PM
Hello,
I'm having some strange problems with page height in Internet Explorer (in Windows). You should be able to see it at this link:
http://mvhub.ltc.org/guide/
(there shouldn't be scrollbars at all, preferably, but the vertica ones are the major problem)
It displays properly in Mozilla Firebird/fox on Linux.
The stylesheet is at:
http://mvhub.ltc.org/guide/styles/main.css
Also, this is my first time doing stylesheets, so general constructive criticism is very welcome.
Thanks,
Erik
Seems to look fine if you take the height property out of the HTML and BODY element structures.
and/or take the height out of the TD elements.
Better would be to dump the table layout and just use CSS.
csl-erik
04-14-2004, 02:27 PM
Thanks for the quick response!
We want the table to stretch to fill the page, which doesn't seem to be the default behavior. And, a height attribute isn't in the HTML 4.01 spec for tables.
The html/body height styles were a work-around for that I found in forums somewhere.
What we'd really like is for the main table to stretch almost all the way to the bottom of the screen, except for a ~20 pixel yellow border, when there is not enough content to fill the screen.
When there is too much content to be displayed in a single screen and a vertical scrollbar is necessary, we'd still like the 20 pixel yellow border to show up at the bottom, to clearly indicate to the users that that's the end.
Thanks again
E
Give the
BODY {
background:yellow;
margin-bottom:20px;
}
The background of other elements need to be given colors.
csl-erik
04-14-2004, 03:23 PM
This still doesn't stretch the table vertically to fill up the screen, at least not in Mozilla. Is there a way to make the table extend to the bottom of the screen. As is, it is just big enough to fit its contents.
It'd probably be easier to just lose the tables and go with CSS only, like Fang said in his first reply. :rolleyes:
csl-erik
04-14-2004, 03:48 PM
It probably would be, I will look into it.
It seems I can make it work nicely in Mozilla OR IE 6.0 OR IE 5.5, but no combination of the three.
Thanks for all the help!
-E
Originally posted by csl-erik
It seems I can make it work nicely in Mozilla OR IE 6.0 OR IE 5.5, but no combination of the three.
I think by "Mozilla" you mean: Netscape, Mozilla, Mozilla FireFox, and Opera, am I correct? ;)
(Just trying to point out, even though it's quite obvious, that IE is the bad boy here, not Mozilla.)
csl-erik
04-14-2004, 03:55 PM
Yes, you're correct. I guess Microsoft thinks they're too good for the W3C specs... ;)