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

Chapter Nine. CSS Basics > Class Selectors

Class Selectors

Discrimination on the basis of class is a terrible thing in life but a fine thing in style sheets. In CSS, class selectors are indicated by a dot:

.fancy    {
     color: #f60;
     background: #666;
   }


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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