HI,
That's a nasty IE8 bug and it always puts the image on top of the pseudo contents background (not its foreground content like text).
Here's the reduced demo.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style>
a.new:after {
background: red;
content: " ";
display: block;
height: 32px;
position: absolute;
right: -2px;
top: -2px;
width: 32px;
z-index: 999;
clear:both
}
a.new {
display:block;
float:left;
position:relative;
}
/*a.new img{position:relative;z-index:-1}*/
</style>
</head>
<body>
<div> <a class="new" href="#"><img class="project frame" src="http://2012.designbits.de/workspace/uploads/hanse-polo-vorschaubild.jpg" alt="Webdesign Hanseatischer Polo Club"></a></div>
</body>
</html>
You could set the image to a negative z-index and it will work in that small example above but not in your page as it puts the image under the background so can't be used.
You could instead supply a uri for the image rather than use as background image and stacking issues should be rectified although you won't be able to use your sprite.
Code:
a.new:after {
content:url(http://2012.designbits.de/workspace/images/sprite.png);
display: block;
height: 32px;
position: absolute;
right: -5px;
top: -5px;
width: 32px;
z-index: 999;
clear:both
}
Bookmarks