- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Grid Gap
CSS Grid
CSS Grid Gap
The CSS Grid Gap property is used to create space between grid rows and columns.
Without gaps, grid items appear directly next to each other. The gap property improves readability and layout design by adding spacing between grid items. The supporting concepts are explained in CSS Grid Columns and CSS Grid Rows.
CSS Grid provides three related properties:
- gap
- row-gap
- column-gap
These properties help create clean and professional-looking grid layouts.
Syntax
Using Gap
Gap Syntax
css
.container {
gap: value;
}