| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
Working around CSS box incompatabilities between MSIE and everyone else
This article by Peter Paul Koch [xs4all.nl] describes the situation in detail. Jeeze, just think -- in ten years CSS 3 might be supported well enough in browsers for this to actually work. ;)
From the article:
1. In the W3C box model, the width of an element gives the width of the content of the box, excluding padding and border.
2. In the Microsoft box model, the width of an element gives the width between the borders of the box, including padding and border.
Does IE6 follow the "Microsoft box model" as described here?
I had assumed that, with a strict doctype, IE6 would follow the W3C specs. (I don't have IE6 on my system.)
You are correct. IE 6 follows the W3C model with a strict doctype. This workaround is for those who, for various reasons, don't use the strict doctype.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved