Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    different HOVER colors?

    How can I make two different color hover links? For example I'm trying to make one link turn yellow when the user rolls over this link, and on the same page make other link turn red.
    This does not work, what am I doing wrong?

    <html>
    <head>
    <title>Help Me please!!</title>
    <style type="text/css">

    .style1 {
    a:hover {color:yellow}
    }

    .style2 {
    a:hover {color:red}
    }

    </style>
    </head>

    <body>
    <p><a class="style1" href="page1.htm">page one</a></p>
    <p><a class="style2" href="page2.htm">page two</a></p>
    </body>
    </html>

  • #2
    New Coder
    Join Date
    Dec 2003
    Location
    California
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    .class1:link {
      color: blue;
      }
    
    .class2:link {
      color: red;
      }
    // freak

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    WOW! That was simple! THANKS A LOT!!! You are the greatest!


  •  

    Posting Permissions

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