An Introduction To Object Oriented CSS (OOCSS) – Smashing Coding

Almost every element on a styled Web page has different visual features (i.e. “skins”) that are repeated in different contexts. Think of a website’s branding — the colors, subtle uses of gradients, or visible borders. On the other hand, other generally invisible features (i.e. “structure”) are likewise repeated.

When these different features are abstracted into class-based modules, they become reusable and can be applied to any element and have the same basic result. Let’s compare some before and after code so you can see what I’m talking about.

via An Introduction To Object Oriented CSS (OOCSS) – Smashing Coding.

One thought on “An Introduction To Object Oriented CSS (OOCSS) – Smashing Coding

Comments are closed.