Internet_Explorer_box_model_bug Internet_Explorer_box_model_bug

Internet Explorer box model bug - Definition and Overview

The Internet Explorer box model bug is one of the best-known bugs in a popular implementation of Cascading Style Sheets (CSS). It affects CSS-aware versions of Microsoft's Internet Explorer web browser for Windows up to version six. Internet Explorer 6 is not affected in its standards-compliant mode, only in its "quirks mode". The bug does not affect versions of the browser on the Apple Macintosh platform.

The difference between the 's width and Internet Explorer's width of a block-level element
The difference between the World Wide Web Consortium's width and Internet Explorer's width of a block-level element

Bug

The CSS box model describes how certain elements of web pages are displayed by graphical browsers. The box model allows block-level elements—such as paragraphs and block-quotations—to be surrounded by padding, borders, and margins. According to the specification for CSS published by the World Wide Web Consortium, when a width is explicitly specified for any block-level element it should determine only the width of the content within the box, with the padding, borders and margins added afterwards [1] (http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-width). Internet Explorer incorrectly includes the padding and borders within the specified width, resulting in a narrower box when displayed.

Work-arounds

Various work-arounds have been devised to force Internet Explorer to display pages correctly. These work-arounds generally exploit other bugs in Internet Explorer's rendering engine to hide rules from the browser. Tantek Çelik—ironically a Microsoft engineer who worked on the Internet Explorer browser for the Apple Macintosh platform—developed the "box model hack". The hack involves specifying a width for Internet Explorer for Windows which is then over-ridden by another width specification. This second specification is hidden from Internet Explorer for Windows by exploiting a bug the way that browser parses CSS rules.

External links

Example Usage of Internet

uhyesplease: btw - hunkering in the back of my minivan,on my laptop, using Culver's Internet, and my baby's carseat as a Malt holder. classy, or trashy?
Camilladlima: Voltando à Internet...Fiz prova hj de Hemato, mas era p eu estar em Itaíba!!Mas o Senhor sabe de todas as coisas...Obrigada, Senhor!
lynokelly: @thumbaleena Hahahaha! I blame the Internet. For everything.
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.