Pseudo styles

A hypertext link has a behaviour which depends on context.  It's default appearance is color: blue for a new link, purple for a visited link and red for an active link. CCS1 defines what it calls pseudo classes for this behaviour, so that you can modify each independently. It is also possible to borrow the 'hover' behaviour from CSS2., which is determined by the cursor being over the element, but this applies to all elements, not just hypertext links. The syntax is:

a:link
  { color: black; }
a:visited
  { text-decoration: none }
a:hover
  { text-transform: uppercase; }

Blocks of text can also have their appearance modified, using a traditional typographical approach, where the first letter, or the first line of a paragraph may be typeset in a difference way. We can identify these styles using the following syntax:

p:first-line
  { color: red }
p:first-letter
  { float: left; font-size : 300%; }
Valid XHTML 1.0! | Valid CSS! | WCAG Approved AA
Page design by: John P Scott - Hosting with: Netcetera