A Quick Way to Remember the Difference Between `justify-content` and `align-items`

I’m the same as Robin and use to always forget these. My way of remembering which one is which is going back to left align, right align, or justifying text. When you justify text it stretches it across the horizontal axis. Robin’s approach is different, but what ever works for you (and stops the inevitable visit to CSS Tricks to remind yourself

She said that justify-content positions elements across the horizontal axis because the word itself is longer than align-items. At first I thought this was a really silly idea but now this is how I remember it. I even used it five minutes ago

An excerpt from A Quick Way to Remember the Difference Between `justify-content` and `align-items`

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.