Here is the code snippet I am working with:
<footer id="footer">
<ul id="labels">
<li id="label1">About</li>
<li id="label2"><a href="">blah</a></li>
<li id="label3"><a href="">blah</a></li>
<li id="label4"><a href="">blah</a></li>
<li id="label5"><a href="">blah</a></li>
</ul>
</footer>
I want to set a specific image for li
items 2-5, but I'm unsure how to do it for label1
.
The CSS code I have only works when label1
has an <a href="">
tag. Is there a different approach I should take?
#label1 a {
height:9px;
width:43px;
background: url(/Content/images/footer/about.png) no-repeat 0 0;
padding:0;
}
As a beginner in CSS/HTML, any guidance would be appreciated.