O'Reilly logo

Stunning CSS3: A Project-Based Guide to the Latest in CSS by Zoe Mickley Gillenwater

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required