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 Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question change in link colour

    I am using a style sheet to change all the colours of my links on mouse over.

    However, I want selected links to be a different colour. If I try an apply a style attribute it changes all the link for the page.

    I am sure this can easy be done - any suggestions.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    .link2{
    color:#ff0000;
    text-decoration: underline;
    }

    .link2:hover{
    color:#000000;
    text-decoration:none;
    }

    <a href="page.html" class="link2">Red to black link</a>

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    many thanks - works a treat


  •  

    Posting Permissions

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