I am working on a website which needs to work across multiple browsers unfortunately also including IE6.
I am using the sliding doors technique for buttons which works beautifully in Chrome, Safari and FF but the images are completely invisible in IE6. What’s even stranger is that it’s not all the images, just the button backgrounds. The icons I put into the actual buttons render fine. Any idea why?
HTML:
<a id="re" href="#" class="button"><span><span class="resolved">Mark as Resolved</span></span></a>
CSS:
a.button
{
background:transparent url(images/normal_end.png) no-repeat scroll top right;
display:block;
float:left;
height: 32px;
padding:3px;
padding-right: 5px;
margin:4px;
text-decoration:none;
color:#555;
font-weight:normal;
width:100px;
font-size: 15px;
}
a.button span
{
background: url(images/normal.png) no-repeat;
display:block !important;
line-height:22px;
padding:0 5px 0 5px;
}
IE6 has a problem with png images, but you can put images as background of divs.
Please note that height and width are that of image.