IE8 not rendering padding & borders properly when doctype is ste to strict. Any suggestions? With doctype set to loose, the borders and padding are okay, but other bigger problems beyond CSS appear, so we're sticking w/ strict. Any suggestions on where to start to resolve border & padding style discrepancies?
A:
Since IE 8 is the first Microsoft browser to try to follow standards, it's likely your page isn't standard compliant which is why it won't render properly in strict doctype.
If you want to use a strict doctype you should probably validate it first
If you want IE 8 to behave like IE 7 try adding this to <head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
which puts IE 8 in IE 7 compatibility mode. Read more here.
Ryu
2009-10-01 22:12:08
A:
i honestly think this "IE8 as IE7" fix is introducing yet another quirksmode, but digress. betsy, are you applying this padding or margin to the <html> or <body> tags? if so, then you should actually apply that css to an element within the <body> itself. for some reason, IE8 does not recognize those styles applied to those elements.
dtan
2010-05-12 20:37:30