Board Logo

Unique CSS style for individual item
coppercup - 1/28/2009 at 11:31 PM

I would like to apply a unique CSS style to an individual item in the root level of the menu (to represent the user's "location" in the site).

While I know how to affect geometry on an individual-item basis, I can't figure out a good way to apply a unique class to the <a> tag constructed by Tigra Menu Pro on a individual item.

Any help would be appreciated.


tigra - 1/29/2009 at 12:59 AM

You can use DOM inspector to take note of the unique IDs assigned to menu item elements. Knowing the ID you can apply style to individual element.

Recommended Software: Firefox+Firebug
Recommended Reading:

coppercup - 1/29/2009 at 02:19 PM

Thanks for the suggestion. We're building the menu dynamically. Do you know of a way to determine the ID dynamically using Javascript?


tigra - 1/29/2009 at 03:14 PM

It depends on the order of the menu item in the structure. You'll clearly see the naming convention with the DOM inspector.

Back to forum: