Diddytheboss
Diddytheboss

Reputation:

How can I make links white?

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

Upvotes: 13

Views: 64641

Answers (5)

Mushfiqur Rahman
Mushfiqur Rahman

Reputation: 492

It can be done in following ways:
1) If you want to color of hyperlinks to white in HTML specific link, then use

<a href="#" style="color:#ffffff;">Some text</a>

2) To add color of hyperlinks to white in CSS from entire html page, Create a .css file, In that write following:

{ a, a:hover, a:active, a:visited { color: white; }

It will suppress color of hyperlinks white from every link.

Upvotes: 0

Sachin Gaur
Sachin Gaur

Reputation: 13099

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

a:link
{
    color:#FFFFFF;
}

a:visited
{
    color:#FFFFFF;
}

a:hover 
{
    color:#FFFFFF;
}

Upvotes: 6

Steerpike
Steerpike

Reputation: 17544

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.

Upvotes: 4

strager
strager

Reputation: 90012

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; }

Upvotes: 29

Frost
Frost

Reputation: 883

You use CSS

a
{
    color: #ffffff;
}

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

Upvotes: 8

Related Questions