4. Selective Styling
In This Chapter
Defining Styles Based on Context
Defining Styles Based on Tag Attributes
Inheriting Properties from a Parent
It’s not enough to style a Web page element. The art of CSS—and thus the art of Web design—is the ability to style elements based on their context. You must consider where an element is in the document; which elements surround it; its attributes, ...
Get CSS3: Visual QuickStart Guide, Sixth Edition 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.