I have a system that generated links to different parts of the application. I need to append an image next to the link based on its context. In CSS I would do it like this:
a {
color:#FF6600;
padding-right:50px;
background-image: url('images/system.png');
background-position: right;
background-repeat: no-repeat;
}
The problem with the above CSS rule is that all links get the same image.If a link has class="system" then system.png must be appended and if its got class="actions" action.png must be appended. I am guessing I could use jQuery to do this, any pointers?