Forum Moderators: not2easy
In Firefox, I noticed that commenting-out the height property and using margin-top and margin-bottom on the div makes it perfect, and rock solid. IE seems to ignore the margin-top and margin-bottom, and simply makes the div as big as the content (which overflows the page, which is unacceptable in this design).
Does anyone know a way to make IE and Firefox behave the same when it comes to this?
The page in question is here: <snip>
Thanks
[edited by: encyclo at 1:22 am (utc) on Aug. 7, 2007]
To make this work in IE only (if you like how it is now in Firefox) just serve up the "overflow:scroll" for IE using a conditional comment. Then firefox will stay the same, and IE will scroll the content.
What this comes down to I think is IE needs a height parameter for the div, but i can't give it one, because the height is, explicitly, the height of the viewport minus top and bottom margins. Firefox seems to understand (assume?) that without a height declaration, the div assumes 100% height, minus margins. IE simply stretches it out past the viewport.
I would just make it a normal scrolling page with "CSS Frames" for top and bottom except the background graphic resizes with the window, meaning the page physically cannot scroll, because that image is an img tag in a div with height: 100%. Maybe I'm trying too many Stupid CSS Tricks in one page? I hope not, it looks pretty smashing (and unique) in Firefox.