CSS box model: Difference between revisions

Content deleted Content added
Tags: Mobile edit Mobile web edit
Bluelinking 1 books for verifiability.) #IABot (v2.1alpha3
Line 68:
[[Internet Explorer]] in "[[quirks mode]]" includes the content, padding and borders within a specified width or height; this results in a narrower or shorter rendering of a box than would result following the standard behavior.<ref>{{Cite web| url=http://msdn2.microsoft.com/en-us/library/bb250395.aspx#cssenhancements_topic3 | title=CSS Enhancements in Internet Explorer 6 | author=Lance Silver |date=March 2001 | publisher=[[Microsoft]] | work=[[Microsoft Developer Network]] | accessdate=2007-06-24}}</ref>
 
The ''Internet Explorer box model'' behavior was often considered a bug, because way in which earlier versions of [[Internet Explorer]] handle the [[CSS box model|box model]] or sizing of elements in a web page, which differs from the standard way recommended by the [[W3C]] for the [[Cascading Style Sheets]] language.<ref>{{Cite book |title=HTML Utopia: Designing Without Tables Using CSS |last=Shafer |first=Dan |year=2005 |publisher=[[Sitepoint]] |___location=Melbourne |isbn=0-9579218-2-9 |pages=[https://archive.org/details/htmlutopia000dans/page/124 124 & Appendix C] |url=https://archive.org/details/htmlutopia000dans/page/124 }}</ref><ref>{{Cite book |title=The Zen of CSS Design |last=Shea |first=David |authorlink=Dave Shea (web designer) |author2=[[Molly E. Holzschlag]] |year=2005 |publisher=Peachpit Press |___location=Berkeley |isbn=0-321-30347-4 |url=https://archive.org/details/zenofcssdesignvi00shea |url-status=dead |df=dmy-all }}</ref> As of [[Internet Explorer 6]], the browser supports an alternative rendering mode (called the "standards-compliant mode") which solves this discrepancy. However, for backward compatibility reasons, all versions still behave in the usual, non-standard way by default (see [[quirks mode]]). [[Internet Explorer for Mac]] is not affected by this non-standard behavior.
 
===Workarounds===