• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. How CSS Works > Pseudo-Classes

Pseudo-Classes

Named for the fact that they are classes that aren't actually attached to tags in the markup, pseudo-classes cause rules to be applied when certain events occur. The most common event that occurs is that the user points at or clicks on something. With the newer browsers (sadly, not Internet Explorer; at least not without adding a special JavaScript function), it's easy to make any onscreen object respond to a rollover; the act of moving the pointer over something, also known as hovering. For example, a pseudo-class can cause a border to appear around an image when the pointer rolls over it.

Anchor Link Pseudo-Classes

Pseudo-classes are most commonly used with hyperlinks (a tags), enabling things like a change in their color or causing their underlining to be removed when rolled over.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint