⊗mkSpFxFP 98 of 128 menu

The CSS flex shorthand property

The flex property is a shorthand for the greed, shrink, and size properties. The order of the shorthand properties is significant and is as follows: flex-grow, flex-shrink, flex-basis. Properties can be omitted from the end, in which case they will take the default value.

Rewrite the following code using the flex shorthand property:

.child { flex-basis: 100px; flex-grow: 1; flex-shrink: 2; }

Rewrite the following code using the flex shorthand property:

.child { flex-shrink: 0.5; flex-grow: 2; }

Rewrite the following code using the flex shorthand property:

.child { flex-shrink: 0.5; flex-grow: 1; }

Rewrite the following code using shorthand properties:

.child { flex: 1 2 200px; }

Rewrite the following code using shorthand properties:

.child { flex: 2 0.7; }

Rewrite the following code using shorthand properties:

.child { flex: 3; }
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