View Full Version : Help with the Switch Menu script

08-03-2006, 11:31 PM
1) Script Title: Switch Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm

3) Describe problem: I would like to modify the css so the submenu items which are hyperlink are white. I am using a blue background and have the main menu items in white but the submenu items show up in blue. I have tried color: #FFFFFF and font-color: #FFFFFF. Is there a way to due this?

08-04-2006, 04:44 AM
font-color is not a valid style property. I would try a selector with rules like so:

.submenu a {

You may need to write them out for each of the pseudo classes as well if you have these otherwise defined in style elsewhere on the page for links in general. Example using the :visited pseudo class -

.submenu a:visited {

This usually is only a probem in IE though and only if, as I said, you have them defined eleswhere for the a element itself.