Skip to content

xhtml & css crashes IE6

It’s always fun to find another bug in IE6. This XHTML/CSS kills IE6 out right. It is cut down from a real project and had us amused for a while.

This seems to be the minimal set that causes the crash. The negative margin is required too.
We swapped the <p> for a <span> in the end.

#inner DIV {
background: #cccccc;
#outer P:first-letter {
margin: -1px;
<div id="outer">
<div id="inner">
<p><a href="">ie6 breaks</a></p>