On 8/8/05, Denise Hartmann <[EMAIL PROTECTED]> wrote:
> I hope this has not been covered over an over, but I want to know about the 
> width discrepancy I am encountering in different versions of IE. Why is 600px 
> wide more narrow in 5.0 than it is in 6.0?

It has indeed been covered, but a refresher doesn't hurt.

IE 5.0, 5.5 and 6 in quirks mode incorrectly apply padding and borders
*inside* the declared width of a box. IE6 in compliance mode, as well
as other modern browsers, follow the correct box model by applying
padding and borders *outside* the declared width. In other words,
"width: 500px; padding: 10px;" will give you a box that is 520px wide
(10 + 500 + 10). IE5.x will render the same CSS as a box 500px wide
with 10px padding inside.

There are various hacks and workarounds to cope with it. See
http://css-discuss.incutio.com/?page=BoxModelHack

-- 
Craig, www.focalcurve.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to