coppercup
Junior Member
Posts: 3
Registered: 1/28/2009
Location: Oklahoma
Member Is Offline
|
| posted on 1/28/2009 at 11:31 PM |
|
|
Unique CSS style for individual item
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.
Thanks,
Fritz
|
|
|
tigra
Administrator
Posts: 2050
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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: http://www.w3.org/TR/CSS2/selector.html
|
|
|
coppercup
Junior Member
Posts: 3
Registered: 1/28/2009
Location: Oklahoma
Member Is Offline
|
| posted on 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?
Thanks!
Fritz
|
|
|
tigra
Administrator
Posts: 2050
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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.
|
|
|