space-between flexbox vertically css
How do you do space-between flex vertically css ? I really dont want to use margin
5 Replies
use grid?
I mean it should work with flex too I just don't like changing the direction and using justify. Imo reads like arse.
Combined the pens https://codepen.io/b1mind/pen/BavjLWq
If you use flex, you just have to do justify-content: space-between
Or use grid and align-content space between
as exampled above in my pens 😄
Oh my bad! I only saw the first pen with grid 😂. Just wanted to provide a flex solution too. Sorry about that!
no worries! but yea gotta change the flex direction which I'm not a big fan of for something grid does by default xD