View Single Post
03-07-2005, 11:51 PM
#14
Lord Kalthorn is offline Lord Kalthorn
Lord Kalthorn's Avatar
Status: I love this place
Join date: Jan 2005
Location: Greathanc
Expertise:
Software:
 
Posts: 743
iTrader: 0 / 0%
 

Lord Kalthorn is on a distinguished road

Send a message via MSN to Lord Kalthorn

  Old

Originally Posted by sunspark
Incorrect, I'm afraid.

Internet Explorer uses a different box model than all other browsers. And they chose to do it differently as a result of not agreeing with the then (and now) current standard.

However, Internet Explorer 6 will use the one the other browsers use, if you trigger standards mode by supplying a correct doctype.

It depends on your perspective and the application for which one makes the most sense. The box model used by other browsers is the one that follows the spec. However, the w3c have also added to the CSS3 draft, the ability to switch box model modes to whichever you like.

Here's one url where you can compare the box models
http://www.communitymx.com/content/a...989953B6F20B41

MS also discusses it here
http://msdn.microsoft.com/library/de...hancements.asp
I didn't say they didn't use a different Box Model I said they do it as they have done it since the beginning, or at least as they do it.

Ah... interesting articles. I am not however sure how that is different? Surely it makes more sense to measure the box as the box - and not as the content. Who sets the height and width of a box, then disregards the boarders in that calculation? It would be stupid to. If you do not include the boarders in the measurements; you come into complications when you're trying to work out the width of the page elements. You have to mentally tally up everything - and even go back to check both width and boarder measurements in order to work it out. Width is the width of the box - not the width of the content. Or you're set the content width and not the div width.