15. CSS Best Practices

It’s not enough to write CSS that makes your pages look pretty: to create the best Web pages, you must also write clean code that’s easy to read, easy to maintain, and loads quickly.

To manage your style sheets you need to know how to create well-organized code, work with CSS libraries and frameworks, optimize the linking of style sheets, validate your CSS, and compress the code by minifying it.

This chapter helps you realize all these goals and finishes with a review of the best practices I’ve presented throughout the book. ...

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.