| Box-sizing Working around CSS box incompatabilities between MSIE and everyone else |
moonbiter

msg:1203820 | 3:20 pm on Oct 15, 2002 (gmt 0) | 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. ;)
|
Longhaired Genius

msg:1203821 | 3:42 pm on Oct 15, 2002 (gmt 0) | 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.)
|
moonbiter

msg:1203822 | 3:47 pm on Oct 15, 2002 (gmt 0) | 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.
|
Longhaired Genius

msg:1203823 | 5:04 pm on Oct 15, 2002 (gmt 0) | Thanks, moonbiter
|
|
|