DEV Community

Discussion on: Separate layout from content

Collapse
 
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 > * { ... }
Enter fullscreen mode Exit fullscreen mode

I'll always be having this:

.container > .column { ... }
Enter fullscreen mode Exit fullscreen mode