I have a CSS sprite image that is functioning correctly, but I am encountering an issue where the image is displaying on the left side of the anchor tag's text instead of the right. You can view the sprite image here.
Expected result:
[Mylinktext]<MyImagehere>
The actual result I am getting is
<MyImagehere>[Mylinktext]
I do not want to use the after pseudo-class because it will not work in IE7. Here is my code:
.ctrls
{
font-family:Arial;
font-weight:bold;
font-size:16px;
color:black;
background-image: url(images/ctrlsprite.png);
//background-image: url(images/css-sprite.png);
background-repeat:no-repeat;
text-decoration:none;
display: inline-block;
padding-left:30px;
}
.ctrls:hover
{
background-position: 0px -252px;
text-decoration:underline;
}
a.magenta
{
background-position:0px -144px;
}
And HTML:
<div>
<p>Magenta</p>
<a href="#" class="ctrls magenta">Et Movet</a>
</div>
How can I position the image to the right side of the text?