flex-grow / shrink / basis Playground

Grandma Marni, Mrs. Yanti and Mr. Sugeng share one real flex table: type each cloth’s flex, and Mr. Karim’s tape shows the basis, the part grow added or…

Why it matters

grow/shrink/basis is the part of flexbox that most often sends people back to a hard-coded width. Once the order is clear (bases first, then share the surplus or shortage, then the min-content floor), sidebars, equal tabs and overflowing long text become predictable.

The key idea

Bases first, then the surplus (or shortage) is shared

Common mistakes

Try it in this playground