space-between flexbox vertically css

How do you do space-between flex vertically css ? I really dont want to use margin
5 Replies
b1mind
b1mind•17mo ago
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
croganm
croganm•17mo ago
If you use flex, you just have to do justify-content: space-between Or use grid and align-content space between
b1mind
b1mind•17mo ago
as exampled above in my pens 😄
croganm
croganm•17mo ago
Oh my bad! I only saw the first pen with grid 😂. Just wanted to provide a flex solution too. Sorry about that!
b1mind
b1mind•17mo ago
no worries! but yea gotta change the flex direction which I'm not a big fan of for something grid does by default xD
Want results from more Discord servers?
Add your server