Modifying color of a:hover

Discussion in 'HTML' started by Jim Van Abbema, Oct 12, 2004.

  1. In my style sheet I have:
    a:hover { color:#bb2222; text-decoration:none }

    How can I modify the hover color for different links on the same page?

    Thanks,

    Jim Van Abbema
     
    Jim Van Abbema, Oct 12, 2004
    #1
    1. Advertisements

  2. Jim Van Abbema

    brucie Guest

    brucie, Oct 13, 2004
    #2
    1. Advertisements

  3. Jim Van Abbema

    rf Guest

    Jim Van Abbema wrote:

    > In my style sheet I have:
    > a:hover { color:#bb2222; text-decoration:none }
    >
    > How can I modify the hover color for different links on the same page?


    Hmmm. This hasn't been answered for at least a week :)

    a.special:hover { color:#bb2222; text-decoration:none }

    <a>This is a normal link</a>
    <a class="special">This is a special link that fiddles with its
    underline</a>

    --
    Cheers
    Richard.
     
    rf, Oct 13, 2004
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer

    Change cell color when hover

    VB Programmer, Jun 11, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    4,026
    VB Programmer
    Jun 11, 2004
  2. Shannon
    Replies:
    1
    Views:
    530
    brucie
    Jul 26, 2003
  3. Richard Thoms
    Replies:
    6
    Views:
    5,151
    Richard Thoms
    Dec 2, 2005
  4. Mufasa
    Replies:
    2
    Views:
    582
    Mufasa
    Jul 3, 2008
  5. Rahul
    Replies:
    7
    Views:
    4,203
    Jonathan N. Little
    Jul 24, 2009
  6. Ken Williams

    Change href color on hover?

    Ken Williams, May 2, 2011, in forum: HTML
    Replies:
    3
    Views:
    19,330
    Helpful person
    May 3, 2011
  7. Menu control and hover text color

    , Jul 10, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    463
    Alessandro Zifiglio
    Jul 12, 2006
  8. Kamaljeet Saini
    Replies:
    0
    Views:
    881
    Kamaljeet Saini
    Feb 13, 2009
Loading...