---
title: "Discussion on \"What happens after adding display: flex?\" | Hashnode"
description: "Discussion on \"What happens after adding display: flex?\". In my experience, very few developers know what happens after adding display: flex. If I asked how margin behavior changes 99% of developers don't answer.\nSo I created a live cheat sheet and wrote this article to fix this situation.  I'm sure you wil..."
url: "https://hashnode.com/posts/what-happens-after-adding-display-flex/62d05959dec7a6eae9b58db4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What happens after adding display: flex?](https://melnik909.hashnode.dev/what-happens-after-adding-display-flex?utm_source=hashnode&utm_medium=feed)

In my experience, very few developers know what happens after adding display: flex. If I asked how margin behavior changes 99% of developers don't answer. So I created a live cheat sheet and wrote this article to fix this situation. I'm sure you wil...

Jul 14, 2022 · 7 min read · melnik909.hashnode.dev  
Updated Jul 21, 2022  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Stas Melnikov](https://hashnode.com/@melnik909)

@melnik909 · Penza, Russia

  
[View profile](https://hashnode.com/@melnik909)

Web UX Accessibility expert & content creator

The author who loves to share knowledge. I write about CSS, HTML, a11y and a user-friendly web.

## Responses 3

Markdown supported · ⌘↵ to post

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Aug 8, 2022](https://hashnode.com/posts/what-happens-after-adding-display-flex/62d05959dec7a6eae9b58db4/comment/62f0dc68dfc2b1556588608b)

So technical this must have taken a while to do thanks for sharing.

[Clutch Nixon](https://hashnode.com/@ClutchNixon)

[Jul 20, 2022](https://hashnode.com/posts/what-happens-after-adding-display-flex/62d05959dec7a6eae9b58db4/comment/62d845d2ca829b4aca5676d1)

Wow! Cool post! Thanks for sharing!

[Pranjal Pratap Singh](https://hashnode.com/@yyppsk)

[Jul 17, 2022](https://hashnode.com/posts/what-happens-after-adding-display-flex/62d05959dec7a6eae9b58db4/comment/62d3e7a6bc2c7a1dc672789a)

Very helpful! Especially the Codpen demo was **cool**!!
