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
b1mind
b1mind8mo ago
align-self is justify-self isnot both work in Grid as intended though 😉 also not on the container but rather the children
b1mind
b1mind8mo ago
dev tools if you are ever in doubt too
No description
b1mind
b1mind8mo ago
and on its child
No description
b1mind
b1mind8mo ago
I would highly recommend learning Grid too don't rely on flexbox, use both.
Julianna
JuliannaOP8mo ago
Oh I love grid, it’s so much easier for me. I’m just trying to understand flexbox better. Thank you!
Kevin Powell
Kevin Powell8mo ago
While justify-self doesn't exist, you can use margin-auto on a specific side to get the same type of behavior.

Did you find this page helpful?