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 7 of 7
  1. #1
    Regular Coder luigicannavaro's Avatar
    Join Date
    Aug 2007
    Posts
    150
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Question Color Attributes for links

    Hi,

    Please which color sttirbutes into CSS style sheet I must use for not change the color of links when selected?

    Thank you

    Luigi

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Posts
    315
    Thanks
    18
    Thanked 2 Times in 2 Posts
    a:visited {}

  • #3
    Regular Coder luigicannavaro's Avatar
    Join Date
    Aug 2007
    Posts
    150
    Thanks
    11
    Thanked 0 Times in 0 Posts
    michael180,

    Sorry, but when I select a lonk its color changes, from blue to red! And have´t any other style sheet code. It is an .asp page

    thank you

    Luigi

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Code:
    a {
    color: blue;
    }
    a:hover {
    color: blue;
    }
    a:visited {
    color: blue;
    }
    a:active {
    color: blue;
    }

  • #5
    Regular Coder luigicannavaro's Avatar
    Join Date
    Aug 2007
    Posts
    150
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Thank you. Works fine.

    Luigi

  • #6
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,607
    Thanks
    0
    Thanked 645 Times in 635 Posts
    Those references are in the wrong order. They should be in the order

    link
    active
    focus
    hover
    active

    any other order means that one or more of the entries will be completely ignored since you can't have an active link that isn't also hover or focus

    probably not so important in this case where you are specifying the same value for each as everything except a {color: blue;} is redundant here anyway.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #7
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Thanks felgall, I just wrote them off the top of my head - still a bit of a newbie myself!


  •  

    Posting Permissions

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