Chapter 3. Mastering of Pseudoelements and Pseudoclasses

Adding simple interactions on websites using CSS is known since pseudoclasses are available. Knowledge about how this feature can be used on websites is very important. Pseudoelements can be used in browsers such as Internet Explorer 8/9 + and can help with some repeatable elements on web pages that were in most cases added with empty spans and divs, for example, graphical details such as arrows in buttons, triangles, and so on. With pseudoelements, you can add these elements without creating DOM elements.

Drawing primitives is a very important skill, especially when you link them with pseudoelements into which you can add them. Adding triangles or some other specific elements can be a very ...

Get Professional CSS3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.