Skip to Content
CSS in Depth
book

CSS in Depth

by Keith Grant
March 2018
Intermediate to advanced content levelIntermediate to advanced
472 pages
13h 5m
English
Manning Publications
Content preview from CSS in Depth

Chapter 9. Modular CSS

This chapter covers

  • Emerging problems as a project grows
  • Organizing CSS into modules
  • Preventing escalating selector specificity
  • Surveying popular CSS methodologies

In parts 1 and 2, we looked at the intricacies of CSS and the tools it provides for laying out elements on the page. We’ve made sense of the box model, margin collapsing, stacking contexts, floats, and flexbox. You’ll need these skills, particularly when you first set out on a new project. In the world of software development, however, you’ll spend a great deal of time not only writing new code, but also updating and adding to existing code. In CSS, this brings with it an entirely new set of difficulties.

When you make changes to an existing stylesheet, those ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CSS: The Definitive Guide, 4th Edition

CSS: The Definitive Guide, 4th Edition

Eric Meyer, Estelle Weyl
Tailwind CSS

Tailwind CSS

Ivaylo Gerchev

Publisher Resources

ISBN: 9781617293450Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link