Chapter 5. Improving Efficiency Using Pseudo-classes
In the last chapter, you learned how to use attribute selectors to target individual links and images without having to add IDs or classes to your HTML. In this chapter, you’ll learn about more CSS3 selectors that can help you keep your code clean and lean, as well as avoid the need for JavaScript or Flash. We’ll use them to apply more visual enhancements to both the speech bubbles and article page, and then top it off with some CSS-controlled animation and transitions to enhance usability.
What You’ll Learn
We’ll create alternating styles for the speech bubbles and the photos in the article page, as well as create a table of contents that highlights the current section of the article, ...
Get Stunning CSS3: A Project-Based Guide to the Latest in CSS 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.