How can I make links white?

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

Answers


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

You use CSS

a
{
    color: #ffffff;
}

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


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.


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

a:link
{
    color:#FFFFFF;
}

a:visited
{
    color:#FFFFFF;
}

a:hover 
{
    color:#FFFFFF;
}

Need Your Help

FTP Upload string from memory with background worker and progress bar using C# and .NET4

c# .net-4.0 ftp backgroundworker

My question is similar to this one and this one, but I couldn't get either of them to work in my application. Perhaps I'm missing something?

Ruby on Rails - RESTful API Authentication

ruby-on-rails ruby api rest authentication

Im building a simple REST API with ruby on rails that allows users to easily create an account. Recently I have tried to secure the API with an API token. I have been testing my API with the Adva...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.