DEV Community

Discussion on: CSS Grid most easy center vertical and horizontal

Collapse
 
dailydevtips1 profile image
Chris Bongers

Can understand why, I'm still in love with flex, just love the easy justify options.
But using place-items more and more.

Collapse
 
richardnikolas profile image
Richard Nikolas
  • Flex is recommended when you're working with just one dimension (X or Y)
  • Grid is better when you have to work with the two dimensions (X and Y)

And it's great to use both together!

Collapse
 
madza profile image
Madza

I like flex for inside components (like header, footer, etc) and grid for general layout 😉

Thread Thread
 
dailydevtips1 profile image
Chris Bongers

Ah good mix indeed!