1

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.

1
  • 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
    – Kevin
    Commented Sep 24, 2010 at 16:46

1 Answer 1

1

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;}
5
  • 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
    Commented Sep 24, 2010 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. Commented Sep 24, 2010 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
    Commented Sep 24, 2010 at 16:59
  • That is probably the problem. 'et' isn't a CSS property. Commented Sep 24, 2010 at 17:07
  • do you know how to get rid of it.
    – Amen
    Commented Sep 24, 2010 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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