flexbox + auto margin

I just stumbled upon this great little article by Sam Provenza and just want to help spread that knowledge: When you are using flexbox to align items within a container and you want some items to be aligned a little different, the CSS margin: auto, margin-left: auto etc. will be your best friend. Read the article, it explains all you need and play around with this pen if you like:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.