New Zenner
- Join Date:
- Aug 2006
- Posts:
- 3
- Plugin Contributions:
- 0
Changing a NavCat Tab's color on selection.
Hi,
I am a Zen Cart newbie and this is my first post on this forum.
I am trying to set a style for the currently selected navCatTab. I would like to set the background color and borders of the selected tab so that it stands out from the others.
Zen Cart seems to give the anchor's text in the currently selected tab a class called 'category-subs-selected'.
e.g.
<li><a class="category-top" href="http://..."><span class="category-subs-selected">ItemType1</span></a> </li>I can use this to CSS select the anchor text of selected tabs. But I want to be able to select the entire list item (so I can change the tab's color). Is there a way to do this using CSS? I want to be able to select the parent of something I can select in CSS.
The only other way I can see to do this is to hack the PHP code to assign a class attribute to <li> itself when it is selected.
e.g.
<li class="category-subs-selected"><a class="category-top" href="http://..."><span class="category-subs-selected">ItemType1</span></a> </li>Any thoughts on this would be greatly appreciated.