Results 1 to 2 of 2

Thread: Help with the Switch Menu script

  1. #1
    Join Date
    Aug 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with the Switch Menu script

    1) Script Title: Switch Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    font-color is not a valid style property. I would try a selector with rules like so:

    .submenu a {
    color:white;
    background-color:blue;
    }

    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 {
    color:white;
    background-color:blue;
    }

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •