Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS List style image using sprites? Re: List style image using sprites?

#83297
seanroberts
Member

I just went back and reread your post and would like to know: Are these styles for a specific list or is this something you want all of your lists to reflect?

If you wanted what I said previously to reflect throughout all of your lists, you can obviously apply similar css to your li simple selector and have that ripple through the site.

If you want more control you can just add specify a class name for the ul and give that only the the lists you would like to see the styles on. for example:




  • List Item

  • List Item

  • List Item




.spec_list li {
list-style-type:none;
margin:0;
padding:0 0 0 20px;
background: transparent url('[image/url]') no-repeat 0 -15px;
}

By applying that class to any ul it will reflect on the children li