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

Chapter 8. PSEUDO-CLASSES AND PSEUDO-ELE... >  Pseudo-Elements in Selectors and Co...

Pseudo-Elements in Selectors and Combining Multiple Pseudo-Elements

By looking at the previous code examples covered in this section, you may have wondered how you can combine pseudo-selectors with other CSS properties, or how to differentiate between combinations of pseudo-elements.

Pseudo-elements can be combined with classes in selectors so that they can be specifically selected for. Pseudo-elements can also be tacked onto a selector. Figure 8-4, which is an adaptation of what was seen earlier in the FIRST-LINE section, shows both pseudo-elements combined with classes at work:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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