Improve and question about Grid

Is the current grid layout okay, or are there ways to improve it? Additionally, if two cards are placed next to each other and a third one below them, is it possible to center the third element? https://codepen.io/Redcaus12345/pen/qEBaKor
jog
CodePen
Untitled
...
4 Replies
redcaus1235
redcaus1235OP2mo ago
Or should I use flex-box
clevermissfox
clevermissfox2mo ago
Kevin Powell
YouTube
Center the bottom row when using grid auto-fit
Grid’s auto-fit is amazing, but sometimes it would be nice if the bottom row could be centered instead of always starting on the left side. Well, after being inspired by Ryan Mulligan, I figured out a way to do it! I’ll be honest, it’s not the simplest thing in the world, but there’s a lot to learn in getting it working, and once you understan...
redcaus1235
redcaus1235OP2mo ago
Thanks but would you recommend me to use flexbox instead
clevermissfox
clevermissfox2mo ago
looks to me like a grid layout but you can use either

Did you find this page helpful?