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 5 of 5
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation Change the colour of the hyperlink text.

    I need to change the colour of the hyperlink text on one page only.
    Will some kind coder please enlighten me.

    Thank you.

    effpeetee

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Give those links a unique class and define the colours for it in your CSS in the same way as you would normally. The higher specificity will override your usual link colours.

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by Pennimus View Post
    Give those links a unique class and define the colours for it in your CSS in the same way as you would normally. The higher specificity will override your usual link colours.
    Could you be a bit more specific please.

    I'm still wearing "L" plates where CSS is concerned.

    Ta muchly,

    effpeetee

  • #4
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    <a href="blah.html" class="newlink">Link</a>

    Then in your CSS:
    Code:
    a.newlink {
    	color: whatever;
    	background-color: inherit;
    }
    
    a.newlink:hover {
    	color: whatever;
    	background-color: inherit;
    }
    Something like that
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #5
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Spot on Friend.

    Worked a treat.

    effpeetee


  •  

    Posting Permissions

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