Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
⊗mkSpFxEGS 93 of 128 menu
◀ ▶

Effect of Element Greediness on CSS Flex Box Compression

Now let's see the impact of greed. Let's remove width from all children and set their children's flex-grow to 1, and the second child to 3. As a result, the second block will be 3 times larger than the others.

However, if you compress the window strongly enough, the second block will no longer be larger than the others by 3 times - with strong compression, the difference is erased. See for yourself by playing with the example below, expanding and narrowing the browser window:

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