views:

1073

answers:

5

How can I change the colour of hyperlinks to white in HTML and CSS?

+7  A: 

You use CSS

a
{
    color: #ffffff;
}

Anchor Pseudo-classes: http://www.w3schools.com/CSS/css_pseudo_classes.asp

Frost
+16  A: 

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; }
strager
+3  A: 

just guessing, you may be looking for these as well:

a:link
{
    color:#FFFFFF;
}

a:visited
{
    color:#FFFFFF;
}

a:hover 
{
    color:#FFFFFF;
}
Sachin Gaur
THATS BLACK!@?!##?@$
Ohh!! then just replace them with #FFFFFF. You will get the white color. However, it was just an example@?!##?@$.
Sachin Gaur
black is the new white.
Ólafur Waage
+4  A: 
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.

Steerpike
A: 

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.

Andy
This is not an answer. Please a question of your own if you need help with this issue.
Squeegy