MCrosbie Posted September 26, 2006 Share Posted September 26, 2006 Hi,I'm having problems with my 100% height div. It works in Firefox, Camino and Safari but not in Internet Explorer. The Whole_menu is the one that I want 100%. I also have a table inside this DIV with 100% height. My CSS file is as below:html{ height: 100%; min-height:100%; width: 100%; margin: 0em; padding: 0em;}body { height:100%; min-height:100%; background-image: url(../images/header_bg.png); background-repeat: repeat-x; background-position: 100px top; background-color: #5b6471; margin: 0px;}/* Menu info */#Menu_whole { position:absolute; left:24px; top:51px; width:270px; height:100%; min-height:100%; z-index:0;}Help! Quote Link to comment https://forums.phpfreaks.com/topic/22056-100-height-divs-in-ie/ Share on other sites More sharing options...
ToonMariner Posted September 26, 2006 Share Posted September 26, 2006 Now I may be wrong here but I beleive there is a difference in how these browsers calculate sizes of elememts. I THINK that ie will make the box 100% of the height of its contents while the other browsers will make the box 100% of its available space.But someone will correct me on that I am sure. Quote Link to comment https://forums.phpfreaks.com/topic/22056-100-height-divs-in-ie/#findComment-98835 Share on other sites More sharing options...
MCrosbie Posted September 26, 2006 Author Share Posted September 26, 2006 So what's the solution then? What do I need to change/add to my stylesheet/html page?Cheers though for your suggestions! Quote Link to comment https://forums.phpfreaks.com/topic/22056-100-height-divs-in-ie/#findComment-98853 Share on other sites More sharing options...
ToonMariner Posted September 26, 2006 Share Posted September 26, 2006 if you are wanting the div to LOOK like it goes all the way to the bottom then the only realsolution is to set a background image of the parent container that is as wide and the same color of teh background you want for the menu div. and let it repeat-y. Quote Link to comment https://forums.phpfreaks.com/topic/22056-100-height-divs-in-ie/#findComment-98986 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.