Change menu text color in navigation / menu - is it possible?
Posted: Wed May 09, 2007 6:25 am
Hi there
Is there any way I can make the navigational menu text colour change in the menu? I have done a few sites in the past and can change the background colours easily enough but not the text hover colour or text menu active colour. The css is below and I've tried many things but can't get it to work, any feedback would be greatly appreciated.
Thanks
/* Styling the basic apperance of the menu elements */
#primary-nav a {
color: #ffffff;
display: block;
margin: 0px;
padding: .5em 0 .5em 0;
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent;
min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #BF0B00;
min-height:1em; /* Fixes IE7 bug*/
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
font-weight: bold;
color: #000000;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li.menuparent,
#primary-nav li.menuparent:hover,
#primary-nav li.menuparenth {
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
color: #000000;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
color: 000000;
font-weight: bold;
}
Is there any way I can make the navigational menu text colour change in the menu? I have done a few sites in the past and can change the background colours easily enough but not the text hover colour or text menu active colour. The css is below and I've tried many things but can't get it to work, any feedback would be greatly appreciated.
Thanks

/* Styling the basic apperance of the menu elements */
#primary-nav a {
color: #ffffff;
display: block;
margin: 0px;
padding: .5em 0 .5em 0;
font-size: 1.5em;
font-weight: bold;
text-decoration: none;
background: transparent;
min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav li, #primary-nav li.menuparent {
background-color: #BF0B00;
min-height:1em; /* Fixes IE7 bug*/
}
/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive {
font-weight: bold;
color: #000000;
}
/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li.menuparent,
#primary-nav li.menuparent:hover,
#primary-nav li.menuparenth {
background-image: url(images/cms/arrow.gif);
background-position: center right;
background-repeat: no-repeat;
color: #000000;
}
/* Styling the apperance of menu items on hover */
#primary-nav li:hover,
#primary-nav li.menuh,
#primary-nav li.menuparenth,
#primary-nav li.menuactiveh {
color: 000000;
font-weight: bold;
}