Results 1 to 3 of 3

Thread: font color change

  1. #1
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default font color change

    I am using FP 2003 for my site and just need a simple effect.

    I need the font color to change when a mouse hovers over the text in the menu. I will select the particular text that it will apply to. However, I have no idea how to apply this and Google results are very broad / not on par to the simplicity I am looking for.

    I am not using anything past basic html. No css or such.

  2. #2
    Join Date
    Dec 2005
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Found this method:

    <style>
    a:hover{color:FF9900; }
    a:link{color:2E304E; }
    a:visited{color:2E304E; }
    </style>

    However, any visited links show as the 2E304E but the hover to FF9900 does not work on visited links. How can I correct that?

  3. #3
    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

    I'm not positive but, give this a whirl:

    Code:
    <style type="text/css">
    a:link {
    color:#2E304E;
    }
    
    a:visited {
    color:#2E304E;
    }
    
    a:hover {
    color:#FF9900;
    }
    </style>
    The expanded listing style is just that (a different way to look at it), the only real changes are the order of the selectors, the use of the # prefix (required by most browsers) and the addition of the current proper use of the type attribute with the opening style tag. The theory being that the last listed selector (other things being equal) will take precedence.
    - 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
  •