Hi bionoid,
Thank you for your help. The sprites are still not appearing next to the corresponding links. I have since removed many of the sprites since I did not need all of them. The new sprite has been attached.
I tried your revised code but unfortunately the sprites are still not showing. I am using HTML 5 Boiler Template starter template not sure if that has to do with the icons not appearing?
Here is my current code in attempts to get this working. Any suggestions are welcome and appreciated. Thanks again!
html code
Code:
<ul class="postmetadata clearfix">
<li><a class="post-comment" href="#" title="post-comment">Post a Comment</a></li> |
<li><a class="email" href="#" title="email">E-mail</a></li> |
<li><a class="print" href="#" title="print">Print</a></li> |
<li><a class="share" href="#" title="share">Share</a></li> |
<li><a class="large-type" href="#" title="large-type">Large type</a></li>
</ul>
css code
Code:
ul.postmetadata li{
list-style-type: none;
font-size: 12px;
}
ul.postmetadata li a {
background: url("img/sprites.png") no-repeat top left;
padding-left: 16px;
padding-right: 5px;
text-decoration: none;
color: #202020;
font-size: 12px;
font-family: sans-serif, Arial,"MS Trebuchet";
}
li a.post-comment{background-position: 0px 0px;
width: 13px; height: 13px;
}
li a.email{background-position: 0px -63px;
width: 13px; height: 13px;
}
li a.print{background-position: 0px -126px;
width: 13px; height: 13px;
}
li a.share{background-position: 0px -189px;
width: 13px; height: 13px;
}
li a.large-type{background-position: 0px -252px;
width: 13px; height: 13px;
}
Bookmarks