Skip to content

Internet Explorer 6 and the Expanding Box Problem

When you purchase through referral links on our site, we earn a commission. Read our Advertiser Disclosure

It’s an unfortunate fact that Internet Explorer 6 will always incorrectly expand any dimensional restricted block element so that oversize content is unable to overflow, as the specs require that content to do. IE7 has fixed this issue and does not wrongly expand boxes such boxes, instead allowing the overflow property to operate as intended by the W3C.

[css]
div {
background: #fff;
border: 6px solid #ccc;
height: 100px;
margin: 20px;
padding: 20px;
width: 400px;
}
[/css]

I will be comparing IE6’s way with the correct behavior as seen in Firefox. The W3C says a rigidly sized block box should allow oversize content to protrude or overflow beyond the edges of the sized box.

There is no real “fix” for IE6’s incorrect behavior, except to work around or avoid it. Several possible workarounds will be detailed as I discuss the issue.

If you want to read more about this issue then Click Here ….

Resources & Links

Share this post on social

About us

We are a financial blog that offers expert advise for wealth management.

Topics

The content on this website is for educational and informational purposes only and should not be construed as professional financial advice. We are not a financial institution and does not provide any financial products or services. We strive to provide up-to-date information but make no warranties regarding the accuracy of our information.