
Definition: CSS Grid is a layout module in CSS that provides a flexible way to distribute and align elements within a container.
- The purpose of CSS Grid in web design is to offer a flexible and efficient way to design and organise web page layouts.
- It allows designers and developers to divide the page into rows and columns, creating a grid of cells where content can be positioned.
- This grid-based approach simplifies the process of creating responsive and dynamic layouts that adapt to different screen sizes and devices.

- Introduce terms like grid container, grid items, rows, and columns.
- By using these properties, you can define the structure and behaviour of the grid container, which in turn affect the positioning and layout of its child grid items.

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 |
  |