December 9, 200916 yr Using CSS, how do I change the colour of my email link on my web page. At the moment the default colour is blue but as my background colour is light blue there is a colour clash. Is there anyway I can change it? Thanking you in advance, Shedhead.
December 9, 200916 yr The easy way with css3 would just be to do something like this a[href^="mailto"]{color:#000} But that only works with browsers that support the new css3 selectors Alternatively find your link <a href="mailto:me@myself.com">Email me!</a> and add a class to it <a href="mailto:me@myself.com" class="email">Email me!</a> and then in your css do something like this a.email{color:#000}
December 9, 200916 yr If you have a very simple page with only one link you can just use: a {color: red} And if you want to remove the underline use: a {text-decoration: none} Adding the rollover is easy too: a:hover {color: green}
December 9, 200916 yr Author The easy way with css3 would just be to do something like this a[href^="mailto"]{color:#000} But that only works with browsers that support the new css3 selectors Alternatively find your link <a href="mailto:me@myself.com">Email me!</a> and add a class to it <a href="mailto:me@myself.com" class="email">Email me!</a> and then in your css do something like this a.email{color:#000} Cheers bocaj, that worked a treat. Shedman.
Create an account or sign in to comment