⊗mkSpGdIS 107 of 128 menu

Implicit Grid Sizes in CSS

The implicit grid itself determines the sizes of those elements that extend beyond its boundaries. However, if necessary, these sizes can be specified using the grid-auto-columns and grid-auto-rows properties.

Let's do this:

<div id="parent"> <div id="elem1">1</div> <div id="elem2">2</div> <div id="elem3">3</div> <div id="elem4">4</div> </div> #parent { display: grid; grid-auto-columns: 100px; grid-auto-rows: 100px; grid-template-columns: 50px 50px 50px; grid-template-rows: 50px 50px 50px; border: 2px solid #696989; padding: 10px; width: 400px; height: 400px; } #parent > div { padding: 10px; border: 1px solid #696989; } #elem1 { grid-row: 1 / 2; grid-column: 1 / 2; } #elem2 { grid-row: 2 / 3; grid-column: 2 / 3; } #elem3 { grid-row: 3 / 4; grid-column: 3 / 4; } #elem4 { grid-row: 4 / 5; grid-column: 4 / 5; }

:

Let's say your grid has 9 blocks. Place some blocks in the explicit grid, and some blocks in the implicit grid. Set the sizes of the blocks in the implicit part.

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