I have 2 kind of <td>
, one is <td class="GH>
, and the second is <td class="BH">
I have a sprite image with 10 circles in different colors.
What I need to do is to put only the green circle in <td class="GH>
and the blue in <td class="BH">
.
the size of a circle is 12px on 13px
my css is like this:
td.GH
{
background:url(http://localhost:36557/%D7%AA%D7%99%D7%A7%D7%99%D7%94%20%D7%97%D7%93%D7%A9%D7%94/Resources/images/status.png);
width:12px;
height:13px;
}
td.BH
{
background:url(http://localhost:36557/%D7%AA%D7%99%D7%A7%D7%99%D7%94%20%D7%97%D7%93%D7%A9%D7%94/Resources/images/status.png);
width:12px;
height:13px;
}
Unfortunately it's not working. I get the image in the background of the , but it's the all image, with all circles.( All my other that do not have a class are empty as they supposed to be). One more problem is that because it is a td, the width and height is changing the td width and height, but I want the width and height of the picture.
Thank you all.