⊗mkPmBMFASA 175 of 250 menu

Aligning Flex Elements to Parent with Padding in CSS

The space-around value in the justify-content property sets the first and last flex items to be spaced from the edge of their parent.

At first glance it may seem that the distance between elements and between the outermost elements and the parent will be equal, however, this is not so - the distance between elements will be 2 times greater than between the parent and the outermost element.

Let's look at an example:

.parent { display: flex; justify-content: space-around; }

Result of code execution:

Repeat the page according to this example:

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