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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.