---
title: "Comment by Alan Montgomery on \"Learn CSS Flex In 5 Minutes\" | Hashnode"
description: "Brilliant little guide. Although being a Senior developer myself, and already knowing flex, this is great and I can see this being a real &quot;go to article&qu"
url: "https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145/comment/5fa7045c0163314ab6d7f44e"
---

[Discussion](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145)

Comment [Learn CSS Flex In 5 Minutes](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145)

[Alan Montgomery](https://hashnode.com/@alanmontgomery)

[Nov 7, 2020](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145/comment/5fa7045c0163314ab6d7f44e)

Brilliant little guide. Although being a Senior developer myself, and already knowing flex, this is great and I can see this being a real "go to article" for people to remind them about important flex properties.

Good job. Love it - and love the simple class names which have a huge effect on efficiency and simplicity!

[Ghost](https://hashnode.com/@incognito-)

[Nov 9, 2020](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145/comment/5fa7045c0163314ab6d7f44e#reply-5fa9ce96fc2ed04a63dd8582)

Thanks for the kind words:)

All this occurred to me after hundreds of hours spent writing and rewriting same flex properties. Just put them into classes.

Many elements require centered content. There is no way I am writing...

```
display:flex; 
justify-content: center;
align-items: center;
```

...for each new centered flex box just to make an element center items on both axis.

[Alan Montgomery](https://hashnode.com/@alanmontgomery)

[Nov 9, 2020](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145/comment/5fa7045c0163314ab6d7f44e#reply-5fa9d66704e4a94a40f0d3e8)

[JavaScript Teacher](https://hashnode.com/@jstdev) I couldn't agree more! It's an absolute pain point writing those exact properties 100000x

[Robert Shichz](https://hashnode.com/@shiznode)

[Dec 22, 2020](https://hashnode.com/posts/learn-css-flex-in-5-minutes/5fa6c1db0163314ab6d7f145/comment/5fa7045c0163314ab6d7f44e#reply-5fe2538ce28a2b6bca52be82)

Russian butt-fucker
