Live data from Hacker News

Coping with Flexbox

kgrz.io

1–10 of 57 posts

Re: Coping with Flexbox

#3
Nice guide, thanks for writing it. I can never remember which directions align/justify impact. The best mnemonic I could think of was justified text. When you click the justify button on a text paragraph in a typical word processor, it impacts the text in the same direction as justify-content in flexbox does.

Re: Coping with Flexbox

#6
post #3

Nice guide, thanks for writing it. I can never remember which directions align/justify impact. The best mnemonic I could think of was justified text. When you click the justify button on a text paragraph in a typical word processor, it impacts the text in the same direction as justify-content in flexbox does.

You just have to remember that if the flex-direction is column, align/justify also flip. Which is partly why it's so confusing.

Re: Coping with Flexbox

#9
post #3

Nice guide, thanks for writing it. I can never remember which directions align/justify impact. The best mnemonic I could think of was justified text. When you click the justify button on a text paragraph in a typical word processor, it impacts the text in the same direction as justify-content in flexbox does.

You just have to remember that if the flex-direction is column, align/justify also flip. Which is partly why it's so confusing.

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.
Post reply on HN