Below is "my-class" css that inserts an image at the selected point.
#my-class {
background-image: url(images/fish.gif) !important;
width: 204px !important;
height: 18px !important;
}
I am trying to add the image from a sprite and I would (in html) just add the img class "fish" below.
<img class="fish" src="images/blank.gif" width="1" height="1" border="0" />
Is there a way to change (images/fish.gif) for "<img class="fish" src="images/blank.gif" width="79" height="23" border="0" />"
Note: The "my-class" and "fish" are on the same css page.
BTW - The sprites url is dealt with this way...
.fish{
background: url(http://my-site/images/sprites.png) no-repeat;
background-position: 0 -165px ;
width: 79px;
height: 23px;
}
Edited by madams, 31 October 2012 - 09:15 AM.









