Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How do I get my pages in IE6 and IE7 to render the height like in IE8 and Firefox? right now in both IE8 and Firefox the page dimensions is 1024 x 800 but in IE6 the dimensions are 1024 x 859 and IE7 the dimensions are 1024 x 855.

share|improve this question
    
Page height will vary depending on toolbars and other variables. The chrome of a browser is your problem not the rendering. Might want to try stackoverflow –  Thorn007 Sep 24 '10 at 16:46
add comment

1 Answer 1

up vote 1 down vote accepted

There could be a few reasons for this including padding, margins, and the way that IE6 treats height as min-height (an article I wrote). Try explicitly setting your padding and margins and using the following CSS:

#container {min-height:200px; height:auto !important; height:200px;}
share|improve this answer
    
Hey when I look at the box model this is what I get et: 174px; margin: 0px; border: 0px; padding: 0px; so I imagine that this et property is causing the height error how do I correct that? –  Amen Sep 24 '10 at 15:48
    
Do you have a doctype? Also, what about the height of the elements within the container? Are any of the child elements floated? The best way that I've found to debug things is to temporarily put a border around each element to see which elements look the way they should and which ones are off. This should help you isolate the problem. –  Virtuosi Media Sep 24 '10 at 15:54
    
I put the border around the element and this is what I get et: 174px; margin: 0px; border: 0px; padding: 0px; so I imagine that this et property is causing the height error how do I correct that? None of the parent elements has the et propert. –  Amen Sep 24 '10 at 16:59
    
That is probably the problem. 'et' isn't a CSS property. –  Virtuosi Media Sep 24 '10 at 17:07
    
do you know how to get rid of it. –  Amen Sep 24 '10 at 19:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.