Board Logo

applying style to items
cdeneen - 11/20/2008 at 08:24 PM

I'm trying to apply a style to a menu item. I'm setting the class in the xml for the item tag as follows:
<item class="inactive"><icon state="0">img/empty.gif</icon><a href="#">Age Spots (0)</a></item>

I added the class to the css file, but it's not taking. I'm not sure if I have the attribute set correctly, since the item is not a traditional html element... what should I be using? I tried:
.treeClass td.treeTextTD a.inactive {
color: red;
font-size: 10px;
font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif;
margin-left: 0px;

tigra - 6/2/2009 at 07:52 PM

try using the document inspector (like Firebug Plugin in Firefox) to see if css class is applied to the element, what is the location of the element in your document and what CSS settings are at play.

Back to forum: