CSS background image inconsistency in IE6 and IE7

Posted by The Machine on Stack Overflow See other posts from Stack Overflow or by The Machine
Published on 2010-04-16T11:54:07Z Indexed on 2010/04/16 12:13 UTC
Read the original article Hit count: 284

Filed under:
|
|

I have a span that is generated through javascript, with its css class as follows:

.class1{  
  width:25px;
  height:25px;
  background-image: url(pic.png);
  background-repeat:no-repeat;
  background-position: center; 
  cursor:pointer;
  margin-left:10px;
 }  

The problem is on, the html page, i can see the pointer -cursor, but not the background image,over the span, in IE7.

In IE6, both get shown , no problems.

© Stack Overflow or respective owner

Related posts about css

Related posts about ie6