I added all my badges to the sprite. Now I need to show one icon from this sprite with a link. When I add a sprite and set its background position to the link, the whole background of the link is the sprite sprite. 
a{ background-image:url('sprite.png'); } .sprite_link_icon{ padding-left: 20px; background-position: -36px -10px } <a class="sprite_link_icon" href="">test link test</a>
How to set the width and height of a sprite so that it displays only one icon?
Is this the only way to add two divs to the "a" tag? Firstly, a div with a sprite icon, width and height, and in another text?
<a href=""> <div class="sprite_link_icon" style="width: 10px; height: 10px;"></div> <div>test link</div> </a>
source share