12. Dynamic Effects with Styles

There are a few CSS features that lend themselves to creating dynamic effects. These are the display and visibility properties, and the :hover pseudo-class. While the display and visibility properties control when an element is visible, the :hover pseudo-class gives you the power to administer that control.

In this chapter, I’ll go over display and visibility and then show you a few ways that CSS designers are implementing these dynamic effects on their Web sites to make rollover buttons, pop-ups, dynamic menus, and more—all without the use of JavaScript.

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.