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.

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