DEV Community


Discussion on: Separate layout from content

bourhaouta profile image
Omar Bourhaouta

A great way to put logic into your styles 👍.

In my case, I carry with me a naked layout style including a small grid system (using CSS Grid for sure 🤘) that fits my needs and I separate layout from elements.

Instead of this:

.container > * { ... }

I'll always be having this:

.container > .column { ... }