Welcome to WebmasterWorld Guest from 54.226.62.251

Forum Moderators: not2easy

Message Too Old, No Replies

Box-sizing

Working around CSS box incompatabilities between MSIE and everyone else

     

moonbiter

3:20 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



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

3:42 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



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

3:47 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



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

5:04 pm on Oct 15, 2002 (gmt 0)

10+ Year Member



Thanks, moonbiter
 

Featured Threads

Hot Threads This Week

Hot Threads This Month