...

View Full Version : Can you change the color of links?



thejflo
07-16-2007, 03:16 AM
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? :confused:

BWiz
07-16-2007, 03:21 AM
Yes, by using CSS



<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.

thejflo
07-16-2007, 03:26 AM
Yes, by using CSS



<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. :thumbsup:

colindunn
07-16-2007, 06:39 AM
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 (http://www.w3schools.com/css/css_pseudo_classes.asp)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum