⊗mkSpFxShr 90 of 128 menu

Compressing flex boxes when there is not enough space in CSS

Let's say we have three flex boxes, arranged in a row inside a parent. Each child box is set to a width of 100px, and their parent is set to 300px:

Let's add more blocks so that the total width of these child blocks is greater than the width of their parent. In this case, you will see an unexpected effect - the width of the blocks will decrease so that they all fit into their parent, despite the fact that the child blocks are explicitly given a width:

Repeat the example from the theoretical part using the model.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline