Results 1 to 4 of 4

Thread: CSS ??

  1. #1
    chenko
    Guest

    Angry CSS ??

    I just use this basic CSS to change all the links on the page, but when a link has been visited... It doesnt underline on hover, yet it changes colour? any ideas

    Code:
    a:link{color:blue; text-decoration:none};
    a:hover{color:red; text-decoration:underline};
    a:visited{color:blue; text-decoration:none}
    Thanks
    Si

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You have to set the a tag first
    Code:
    a {color: blue; text-decoration:none}
    And I think the visited is given precedence over hover.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    chenko
    Guest
    Thanks

    I changed it to...

    a:link{color:blue; text-decoration:none};
    a:visited{color:blue; text-decoration:none};
    a:hover{color:red; text-decoration:underline}

    ...and it worked

    cheers!

  4. #4
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Yeah, you have to put a:hover last or else it won't work.
    Alcohol & calculus don't mix.
    Never drink & derive.

Posting Permissions

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



Click Here to Expand Forum to Full Width