September 23rd, 2002, 02:51 PM
CSS: problems with the height property
I'm developing a site which is based on CSS and XHTML.
I have a div which uses the "height" property with a percentage value. The height of the div box is supposed to be 100%, and that works in both Opera, Mozilla and even IE 5 and 5.5, but not in IE 6!
In IE 6 the height of the box is only relevant to the containing text, and not relevant to the browser window. This means that the div is far from 100%.
What can be done to work around this?
September 23rd, 2002, 06:39 PM
You could retrieve the height of the window and then adjust the value of the div height using that value if the browser (using some browser sniffing) is IE 6.0
September 26th, 2002, 06:56 AM
Thanks, man. I ended up making a script that makes a specific style to IE 6.