neil_f
08-01-2010, 06:44 PM
Hi
I am having some problems with an icon that is displayed when a menu is hovered over.
Please see attached files for the html (renamed to .txt), CSS (I’ve copied all into a single file due to the 4x attachment limit) and jpg for the icon that is displayed when hovering over a menu item.
Hovering the mouse over any menu item causes an icon to be displayed to the left of the menu item.
When menu item ‘Main 1’ is selected a sub-menu is displayed. The problem is that when any item in the sub-menu is hovered over the icon is displayed for both the parent (Main1) and sub menu items – I only want it displayed for the sub item being hovered over. Is there anyway I can prevent the icon for the Main1 parent menu being displayed. The fix though has to be such that if Main2, Main3, Main4 or Main5 are hovered over (which don’t have sub-menu’s) then the icon is displayed for them.
Note: I have previously tried the table approach for the menu, which although fixed the icon problem brought other problems. Through this site I was advised that the solution should use the list approach (rather than table).
Many thanks in advance for any help.
I am having some problems with an icon that is displayed when a menu is hovered over.
Please see attached files for the html (renamed to .txt), CSS (I’ve copied all into a single file due to the 4x attachment limit) and jpg for the icon that is displayed when hovering over a menu item.
Hovering the mouse over any menu item causes an icon to be displayed to the left of the menu item.
When menu item ‘Main 1’ is selected a sub-menu is displayed. The problem is that when any item in the sub-menu is hovered over the icon is displayed for both the parent (Main1) and sub menu items – I only want it displayed for the sub item being hovered over. Is there anyway I can prevent the icon for the Main1 parent menu being displayed. The fix though has to be such that if Main2, Main3, Main4 or Main5 are hovered over (which don’t have sub-menu’s) then the icon is displayed for them.
Note: I have previously tried the table approach for the menu, which although fixed the icon problem brought other problems. Through this site I was advised that the solution should use the list approach (rather than table).
Many thanks in advance for any help.