guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
I have a menu done in CSS that has a width of "X"
Now with all the menu's in the system, "X" is fine and it works perfectly. But as an "added feature" to the site I only want to display the menu's that actually have pages/items under those menu's. This of course means the width of "X" should be reduced accordingly.
Any ideas on how I can decrease the width of the menu based on the number of active menu items? Should I do something in JS (using jQuery) or should I just do a style override within the page that will override the style on the external CSS?
Now with all the menu's in the system, "X" is fine and it works perfectly. But as an "added feature" to the site I only want to display the menu's that actually have pages/items under those menu's. This of course means the width of "X" should be reduced accordingly.
Any ideas on how I can decrease the width of the menu based on the number of active menu items? Should I do something in JS (using jQuery) or should I just do a style override within the page that will override the style on the external CSS?