Chapter 12. Scalability and Modularity

In this chapter, we'll cover the most well-known CSS methodologies in the process of creating modular and scalable code. This is a very interesting subject because there are a lot of methodologies. Each has its pros and cons. In this chapter, we will get a basic knowledge about them.

We will cover the following topics:

  • Building scalable and modular code
  • CSS methodologies
  • SMACSS
  • BEM
  • OOCSS
  • How to choose the right methodology?

Building scalable and modular code

The process of building good code is unique to each developer. But how can you build easily scalable CSS code? Additionally, this code needs to be modular.

The most important thing in methodologies is the naming convention. You can use a proper methodology for ...

Get Professional CSS3 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.