O'Reilly logo

Pro CSS and HTML Design Patterns by Michael Bowers

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 1Design Patterns: Making CSS Easy!

On the surface, CSS seems easy. It has 45 commonly used properties you can employ to style a document. Below the surface, different combinations of properties and property values trigger completely different results. I call this CSS polymorphism because the same property has many meanings. The result of CSS polymorphism is a combinatorial explosion of possibilities.

Learning CSS is more than learning about individual properties. It is about learning the contexts in which properties can be used and how different types of property values work differently in each context. As an example, take the width property, which has many different meanings depending on how it is combined with other rules and what ...

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