PDA

View Full Version : 100% body height in ie


nectar
10-08-2003, 03:56 PM
I have in my css file
body{height:100%,...etc}
#container{{position:absolute;left:50%;top:0px;margin-left:-350px;width:700px;border-left:1px solid #555;border-right:1px solid #555;margin-bottom:0;padding-bottom:0;height:100%;}

this #container should reach the base of the page, and does in mozilla and navigator but not in explorer. In explorer in goes to the base of the viewable page, but always activates the scroller and creates another 5% approximately of page.

Does anyone have an idea how to achieve this so that ie doesnt create a scroller when the page doesnt need it?
Thanks

Catman
10-08-2003, 07:27 PM
body {
overflow : auto;
}

nectar
10-08-2003, 09:13 PM
Unfortunately that doesnt do it either. In opera, navigator and mozila, putting 100% height works in ie nothing...it either doesnt fill the page height or adds a scroller and leaves a gap at the bottom.

me'
10-09-2003, 06:52 PM
Have you tried making sure border-top:, margin-top: and padding-top: of the body element are all 0?

nectar
10-09-2003, 09:04 PM
The top margin and padding doesnt make any difference

http://www.adler-global.com/dev/sample/sample-04.htm

above is the link, in moz and nav and opera ok...in ie the problem.

me'
10-09-2003, 09:12 PM
border-bottom etc. then.

nectar
10-09-2003, 09:38 PM
yep...that did it...thanks...should have thought of it.