View Full Version : 100% height? weird IE behaviour ;)

09-23-2006, 01:10 PM
I'm busy with a website.. but I can't figure this out:
I've got white content-space with some shadowgraphics at both sides..
but the shadow graphics don't do what they supposed to, they should be from top to bottom of the page..


what do I do wrong?
Thanks in advance!

09-24-2006, 01:57 AM
this is the general behaviour of background images. why dont you have them as images and make then height:100%;

P.s When i develop ny sites they always start "Lorem ipsum dolor sit amet, consectetuer adipiscing elit...." as well ;)

09-24-2006, 02:57 AM
Just want to say that I thought this forum would be too advanced for me :(

But I am learning fast love the way you help each other :thumbsup:

09-24-2006, 02:58 AM
Wow okay you have a case of divitis and also a lot of CSS that can be trimmed down. 100% height is 100% height of the browser window not the page. You need to use min-height however IE6 doesn't support this but it does treat normal height as min-height. First though you need to change one thing

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Change that to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Now you need to make add 100% height to the body and you also need to add

html {
/*Hide from IE Mac\*/
* html #container {
/*End Hide*/

Then for your #container remove height:100%; and add min-height:100%;

Personally I would combine your shadows to make them one image. It will make it easier code wise.