Hacker News new | ask | show | jobs
by frosted-flakes 2377 days ago
You just have to remember that if the flex-direction is column, align/justify also flip. Which is partly why it's so confusing.
2 comments

Defining then relative to the flex direction makes sense, but the choice of which one is with the flow and which is across it is arbitrary, chosen between two words that normally mean with the flow. It'd make more sense if the properties were flex-justify and flex-justify-cross, or flex-align and flex-align-across.
They are the same in relation to the flex-direction. Justify goes with the direction, align goes perpendicular to it. But still I agree, I've now been using flexbox for a long time and I still find myself second guessing a lot.
Reading your comment gave me the mnemonic “a line goes perpendicular to it” which I think will come in handy (for me at least).