DEV Community

Discussion on: Ridiculously easy row and column layouts with Flexbox

Collapse
 
dance2die profile image
Sung M. Kim

Thank you Andrew.

I've never thought about giving meaningful class names such as rows & columns.

It just made CSS much more readable.

Collapse
 
drews256 profile image
Andrew Stuntz

Haha, I know there are many people with many ideas about how to name classes and ID's in HTML and CSS. I have yet to use anything that I liked enough to stick with. So, I go with "sensible" and "meaningful" class names. But It sometimes still feels unorganized. One of the biggest reasons I like to use the above to layout pages, is that I can scope all my SASS to the outer level div, and that can help keep things organized. My opinions on class naming are evolving though, maybe I should write something about that next!

Collapse
 
dance2die profile image
Sung M. Kim

My opinions on class naming are evolving though, maybe I should write something about that next!

I'd love to read about it ❤️🕺