you should / can use classes in your list items:
<ul>
<li class="bar>
<a href="#" title="foo">Foo</a>
</li>
<li class="foo>
<a href="#" title="bar">Bar</a>
</li>
</ul>
CSS for bullet images for <li>
ul {
list-style: none;
}
li {
padding-left: 25px;
}
li.bar {
background: url(img_2.png) no-repeat 0 50%;
}
li.foo {
background: url(img_1.png) no-repeat 0 50%;
}
CSS for bullet images for <a>
ul {
list-style: none;
}
li a {
padding-left: 25px;
display: block;
}
li.bar a {
background: url(img_2.png) no-repeat 0 50%;
}
li.foo a {
background: url(img_1.png) no-repeat 0 50%;
}
source
share