DSGN53871
WEB DESIGN 1
Pseudo Classes in Cascading Stylesheets There are four "class" properties that are designated as a special "pseudo-class". Pseudo classes are denoted with a colon in front as opposed to a period (.) in class declarations. These classes are link, visited, active and hover. :link - Hypertext element that is targeted by using an <a href="#"> tag. :visited - Hypertext element that targets and has already been visited. :active - Hypertext element that is active (pressing on the link). :hover - The mouse or pointer is 'hovering' on top of the element. An example of these psuedo-classes in noted below: :link {color: #cccccc; text-decoration: none;} :visited {color: #666666; text-decoration: none;} :active {color: #ccc666; text-decoration: none;} :hover {text-decoration: underline; }<< Back Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan |