DEV Community

Discussion on: Do you use a CSS framework based on CSS Grid?

Collapse
 
mindplay profile image
Rasmus Schultz

Nice, simple approach! 👍

I'm not super fond of placing multiple rows of columns into a single row-container - I like the more traditional markup structure, where each row is represented by a row-wrapper.

Rather than adding margin after every row, I prefer to add margin above consecutive rows, like so:

jsfiddle.net/ev7n36q8/2/

I still wish there was a way to implement a grid that uses relative weights - like this one, but implemented using grid rather than flex, since, unfortunately, the flex approach falls apart when you add margin, padding or borders.

I don't think relative weights are possible with grid though? 🤔