Icons or pictures in Category list

Icons or pictures in Category list

by Rene Louwers -
Number of replies: 1
Hi,

I want to make my theme even more beautiful than it already is. I haven't seen a theme yet where pictures or icons are used in the course or category list. Something like:
  • Category one
    • SubCategory one
  • etc
But instead of the simple bullets my own pictures. Btw, if pictures is to difficult, bullets is always better than nothing.

Can someone push me in the right direction on this one.

Thanks in advance,

Cheers,
Rene

http://actitude.nl/ecoach/
Average of ratings: -
In reply to Rene Louwers

Re: Icons or pictures in Category list

by Stuart Young -
um, this is untested but you could try

.categoryname {
background: url(/images/icon.gif) 2px 50% no-repeat;
padding: 0.5em 2.5em;
}

where /images/icon.gif is the path to and the filename of your icon.

you may have to adjust the padding to suit

and also I haven't tested if class="categoryname" is used elsewhere, so that changing the style will change it in those place too

cheers