Modular CSS

Next you learned how to create modular CSS. We didn't want to style one piece of our site and then redo all those styles again if we felt like styling another similar piece of our site. We wanted to be able to reuse the CSS we had already created by employing modular techniques. I emphasized this when we built our buttons using modular classes. To learn more about modular CSS, you can get smacked over at SMACSS (Scalable and modular architecture for CSS); refer to the smacss.com website.

Get Mastering CSS 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.