I'm attempting to implement it in the following manner:
CSS
#sprite2 {
background: url(../images/csg_sprite.png) no-repeat top left;
}
.collapse_down{ background-position: 0 0; width: 16px; height: 16px; }
.collapse_up{ background-position: 0 -66px; width: 16px; height: 16px; }
HTML
<div id="sprite2"><span id="splink1" class="collapse_down">Defaults</span>
Modifying with jQuery
$('#splink1').attr("class", 'collapse_up');
The issue I'm encountering is that the image is being applied to the div=sprite2 instead of the intended span.
How can I adjust it so that the sprite appears on the left of the text and changes to the upward direction when toggled?