I want to create a div
tag that has an icon to the left, and some text.
Now using jquery, if an event occurrs, I am adding a class to this div tag so that the icon is replaced with another icon.
I have the jquery side of things, but I'm not sure how to do this via CSS.
my css:
<div id="tag-user" class="usertag selected">Some tag</div>
.usertag
{
background:url("/Images/tag.png") no-repeat;
}
.usertag .selected
{
background:url("/Images/tag-selected.png") no-repeat;
}
The image doesn't seem to be appearing, so I guess my css is wrong.