How can I change the colour of hyperlinks to white in HTML and CSS?
You use CSS
a
{
color: #ffffff;
}
Anchor Pseudo-classes: http://www.w3schools.com/CSS/css_pseudo_classes.asp
Use the color CSS property.
a { color: white; }
Problem is, visited links may not be shown as white as well. You may need to add extra rules:
a, a:hover, a:active, a:visited { color: white; }
just guessing, you may be looking for these as well:
a:link
{
color:#FFFFFF;
}
a:visited
{
color:#FFFFFF;
}
a:hover
{
color:#FFFFFF;
}
a { color: #fff; }
in your css file. I will add that if you're doing it to try and hide many white links on a white background of a page it is a very bad idea.
I'd certainly like to know how to make my links white - as when I'm adding links onto a page that has a blue background. When I add links, they turn blue and ae impossible to see. Changing the background to another color is not possible. Also, the site doesn't use a CSS file for various reasons. I want to be able to turn just ONE link white without turning all the other links white, as the rest of the links are blue on white backgrounds.