This last year I have had the pleasure of using Flexbox regularly at work. I have had some trouble with memorizing the relationship between
justify-content, specifically in the context of centering elements in a flex container. My everyday routine has up until now been browsing through each possible value, using the Chrome Developer Tools, until I got what I wanted. Not very elegant.
So, it was time for a change. I made this simple cheatsheet and thought it might be of useful for others. It’s just a small reminder getting me on the right track. In fact, after a couple of rounds with this, I think I got it to stick. There are far more thorough tutorials if you want to get a better understanding of how Flexbox works.
Of course, the cheatsheet is written using Flexbox and is hosted at http://owickstrom.github.io/flexbox-centering-cheatsheet/. You need a modern browser for it to render correctly. The source is available at Github.