Black Belt
- Join Date:
- Jul 2005
- Location:
- Upstate NY
- Posts:
- 21,874
- Plugin Contributions:
- 8
Post #661 by gjh42
There is a class to indicate that a category is active (selected, or the ancestor of a selected category). It would need to be combined in the stylesheet with the individual category id class, which is acceptable CSS practice, but which older versions of IE (IE6 at least) can't cope with.
You can add .cat-parent and .cat-selected to the rule like this:
#categories li a.catBg68.cat-parent, #categories li a.catBg68.cat-selected {
background-image: url(../buttons/english/catbg68active.gif);
}
```This covers the possibilities of cat 68 being selected itself, or being the parent of a selected category. If it has no subcats, you can skip the whole #categories li a.catBg68.cat-parent, part.
