Link to the Home page

Change the background color of a menu item

The CSS attached to the <a> tag contains the information for a menu item’s background color. There are also several relevant background color class values attached to the <a> tag that pertain to different menu states.

To change the background color of a menu item, use the following table to locate the appropriate CSS rule, and then change the default value:

Color to change CSS rule for vertical or horizontal menu bar Relevant properties and default values
Default background ul.MenuBarVertical a, ul.MenuBarHorizontal a

background-color: #EEE;

Background color when mouse pointer moves over it ul.MenuBarVertical a:hover, ul.MenuBarHorizontal a:hover background-color: #33C;
Background color when in focus ul.MenuBarVertical a:focus, ul.MenuBarHorizontal a:focus background-color: #33C;
Menu Bar item color when mouse pointer moves over it ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemHover

background-color: #33C;

Submenu item color when mouse pointer moves over it ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover background-color: #33C;