1 List with all CSS links Mon Jun 28, 2010 1:10 am
Guest
Guest
Hey there guys
At this tutorial,i am going to show you all the CSS properties to style a link.
Here are the basic states:
We add those to our CSS.We can change the colors as we like and prefer.
BackGround color:
We can also change the background color of our links with this properties:
Last thing.We can also change the links decoration.We can use that to remove the underline under the links,because our links are always underlined if we dont add any of these CSS codes.
You can see above that we remove the text decoration by writing "Text-decoration:None"
And here is where my tutorial ends
At this tutorial,i am going to show you all the CSS properties to style a link.
Here are the basic states:
-
- Code:
a:link {color:#FF0000;}
-
- Code:
a:visited {color:#00FF00;}
- Code:
a:hover {color:#FF00FF;}
-
- Code:
a:active {color:#0000FF;}
We add those to our CSS.We can change the colors as we like and prefer.
BackGround color:
We can also change the background color of our links with this properties:
-
- Code:
a:link {background-color:#B2FF99;}
- Code:
a:visited {background-color:#FFFF85;}
-
- Code:
a:hover {background-color:#FF704D;}
-
- Code:
a:active {background-color:#FF704D;}
Last thing.We can also change the links decoration.We can use that to remove the underline under the links,because our links are always underlined if we dont add any of these CSS codes.
- Code:
a:link {text-decoration:none;}
- Code:
a:visited {text-decoration:none;}
- Code:
a:hover {text-decoration:underline;}
- Code:
a:active {text-decoration:underline;}
You can see above that we remove the text decoration by writing "Text-decoration:None"
And here is where my tutorial ends