a:link {color:#ff0000;}When setting the style for the different link states they must be in the above order to work properly.
a:visited {color:#00ff00;}
a:hover {color:#ff00ff;}
a:active {color:#0000ff;}
Text decoration for links is the same as text as well, Here's an example:
a:link {text-decoration:none;}Background color for links is the same as anything else in CSS too:
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
a:link {background-color:#b2ff99;}
a:visited {background-color:#ffff85;}
a:hover {background-color:#ff704d;}
a:active {background-color:#ff704d;}
very helpful, thanks! I'm still new to all this so I'm looking forward to more tutorials!
ReplyDeleteGood tutorial!
ReplyDeletemy friend actually just asked me about this, imma link him over to this so he knows how to do that, something bout needing it for his own page he wont say what for tho
ReplyDeleteSo simple!
ReplyDeleteNice, great tools for customizing the little details on your site that really add up.
ReplyDeleteGreat thanks for this mate :D
ReplyDeleteThanks, I was looking for a tutorial about this.
ReplyDeleteWow, simple as that, huh? Thanks for the tutorial! +followed
ReplyDeletelearning a ton from your tutorials, thanks again.
ReplyDeleteSweet, keep em coming. Hope to be a css ninja eventually.
ReplyDeletethass wassup
ReplyDeleteSimple and noob friendly, thanks.
ReplyDeletea:link {color:#ff0000;}
ReplyDeletea:visited {color:#00ff00;}
a:hover {color:#ff00ff;}
a:active {color:#0000ff;}
I used this code for some of the text that I used on my old website.