Two column Grid layout, center odd one
So, I know Kevin talked about this in a video, but darned if I can remember which one.
I have a 2 column grid layout, and if there is an uneven number of items, I want the last item to center at the bottom.
His video talked about it being easier in either grid or flex, but I forget the details. Help? Image of what I have attached, and what I want.
For the record what I have is just a simple grid with grid-template-columns set to 1fr 1fr
Thanks
2 Replies
with grid, you could do this
https://codepen.io/MarkBoots/pen/pomoXZL
Perfect, thank you!