|
||||||||||||||||||||
Pseudo-Classes
Pseudo elements are used to break down elements into smaller parts allowing us to define different styles
for each. A good example of this is the anchor "A" tag which has three different pseudo-classes:
link, visited and active.
A:link { color: red } A:visited { color: blue } A:active { color: lime }
You should notice that the pseudo-classes are separated by the colon ":" character. In instances such as these, the pseudo-class only applies to the anchor element, so we can actually elimnate the major element as shown below:
:link { color: red } :visited { color: blue } :active { color: lime }
|
Featured Clients
Amfa Local 9 Orvado was contacted by a major airline machinists union to help spruce up their existing site, while providing ease of maintenance. |
|