---
title: "Comment by Dinys Monvoisin on \"Flexbox: How to make content take up remaining space after fixed sidebar\" | Hashnode"
description: "I read the article and still hard for me to understand the difference between flex-basis, flex-grow and flex-shrink. Could you better explain it?"
url: "https://hashnode.com/posts/flexbox-how-to-make-content-take-up-remaining-space-after-fixed-sidebar/5f6d699da654ca5357fd93b0/comment/5f7311481d7a870a345b9a4f"
---

[Discussion](https://hashnode.com/posts/flexbox-how-to-make-content-take-up-remaining-space-after-fixed-sidebar/5f6d699da654ca5357fd93b0)

Comment [Flexbox: How to make content take up remaining space after fixed sidebar](https://hashnode.com/posts/flexbox-how-to-make-content-take-up-remaining-space-after-fixed-sidebar/5f6d699da654ca5357fd93b0)

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 29, 2020](https://hashnode.com/posts/flexbox-how-to-make-content-take-up-remaining-space-after-fixed-sidebar/5f6d699da654ca5357fd93b0/comment/5f7311481d7a870a345b9a4f)

I read the article and still hard for me to understand the difference between flex-basis, flex-grow and flex-shrink. Could you better explain it?

[Luke Household](https://hashnode.com/@SiteLight)

[Sep 29, 2020](https://hashnode.com/posts/flexbox-how-to-make-content-take-up-remaining-space-after-fixed-sidebar/5f6d699da654ca5357fd93b0/comment/5f7311481d7a870a345b9a4f#reply-5f73297ff955ec0a130f6279)

I would put it this way.

flex-basis is describing the original widths of the elements. If the combined width of all the elements is smaller than the available space, flex-grow becomes relevant. Elements will grow by an amount based on the proportion between their flex-grow value and the sum of all the flex-grow values. If the combined width of all the elements is larger than the available space, the elements will shrink by an amount based on the proportion between their flex-shrink value and the sum of all flex-shrink values.

There's no way for flex-grow and flex-shrink to be used at the same time. You can only know how much an element will grow or shrink by knowing the relevant values of all the neighbour elements.

Hope this is helpful!
