Definition: CSS Grid is a layout module in CSS that provides a flexible way to distribute and align elements within a container.


| Properties | Value | Explanation |
|---|---|---|
| display | grid | ![]() |
| Properties | Value | Explanation |
|---|---|---|
| grid | template-rowstemplate-columns | ![]() ![]() |
| Properties | Value | Explanation |
|---|---|---|
| gap | column-gaprow-gapgrid-column-gapgrid-row-gap | ![]() ![]() |
| Properties | Value | Explanation |
|---|---|---|
| justify-items | startendcenterstretch | ![]() |
| Properties | Value | Explanation |
|---|---|---|
| align-items | startendcenterstretch | ![]() |
| Properties | Value | Explanation |
|---|---|---|
| justify-content | startendcenterstretchspace-aroundspace-between | ![]() ![]() |
| Properties | Value | Explanation |
|---|---|---|
| align-content | startendcenterstretchspace-aroundspace-between | ![]() ![]() |
| Code | Output |
|---|---|
![]() ![]() ![]() |
![]() |