CSS your HTML partner ! !

CSS your HTML partner! !

Click here to visit Our forum here!

Thursday, April 14, 2011

CSS Pseudo-classes

Link Us to: http://tinyurl.com/3gw86mr
CSS pseudo-classes are used to add special effects to some selectors.
e.g. : selector:pseudo-class { property:value ; } Above are the syntax of pseudo-classes.


Anchor Pseudo-classes
Links can be displayed in different ways in a CSS-supporting browser:


e.g. : a:link {color:#FF0000;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#FF00FF;} /* mouse over link*/ a:active {color:#0000FF;} /* selected link */


Pseudo-classes and CSS Classes
Pseudo-classes can be combined with CSS classes:
e.g. : a.red:visited {color:#FF0000;} CSS Blog


Reference: CSS Pseudo-classes,[online],Retrieved by 14 April 2011.
URL: http://www.w3schools.com/css/css_pseudo_classes.asp

No comments:

Post a Comment