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 4 of 4
  1. #1
    New Coder
    Join Date
    May 2007
    Location
    nyc
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can you change the color of links?

    I'm pretty sure the answer is yes, but I want to make sure if I can achieve this in my coppermine photo gallery.

    The background of mine is a medium shade of green, and the blue text really clashes with it.

    Help?

  • #2
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    Yes, by using CSS

    Code:
    <style type="text/css">
    a { color: #f00; } /* changes it to red */
    a:hover { color: #080; } /* changes it to green when the mouse is it */
    </style>
    The text beteen the /* */ are comments, you can delete them.
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #3
    New Coder
    Join Date
    May 2007
    Location
    nyc
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BWiz View Post
    Yes, by using CSS

    Code:
    <style type="text/css">
    a { color: #f00; } /* changes it to red */
    a:hover { color: #080; } /* changes it to green when the mouse is it */
    </style>
    The text beteen the /* */ are comments, you can delete them.
    Thank you!!! I wasn't expecting a reply so soon.

  • #4
    New Coder
    Join Date
    Apr 2007
    Posts
    49
    Thanks
    10
    Thanked 0 Times in 0 Posts
    other states include a:active (when the user clicks on the link) and a:visited (when a user has already been to the linked page). These are called pseudo classes and you can learn about them here


  •  

    Posting Permissions

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