justify-self and align-self flexbox?
Do justify-self and align-self not work for elements in a flexbox container? I’m finding mixed info and some of it is 8 years old.
6 Replies
align-self is justify-self isnot
both work in Grid as intended though 😉
also not on the container but rather the children
dev tools if you are ever in doubt too
and on its child
I would highly recommend learning Grid too don't rely on flexbox, use both.
Oh I love grid, it’s so much easier for me. I’m just trying to understand flexbox better.
Thank you!
While
justify-self
doesn't exist, you can use margin-auto
on a specific side to get the same type of behavior.