What is CSS Grid ???

What is CSS Grid ???

CSS GRID LAYOUT......

ยท

2 min read

Table of contents

No heading

No headings in the article.

Try to understand the concept of CSS grid layout:

What is a CSS grid in web development:

CSS grid consists of rows and column-based grid layout system to make the design of a webpage very easy without float and position properties...

Screenshot_20221130_105402.png

Screenshot_20221130_105431.png

Output:

Screenshot_20221130_105336.png

Property of CSS grid layout:

Grid Colum:

Screenshot_20221130_105739.png

Grid Row:

Screenshot_20221130_105750.png

Grid Line:

Screenshot_20221130_105806.png

Well, it has many properties but we are focusing on the most important properties which are the most useful to make our webpage.

  1. column-gap: Specifies the gap between the columns.

  2. gap A shorthand property for the row-gap and the column-gap properties.

  3. grid A shorthand property for the grid-template-rows, grid-template-columns, grid-template-areas, grid-auto- rows, grid-auto-columns, and the grid-auto-flow properties. 4 .grid-gap A shorthand property for the grid-row-gap and grid-column-gap properties.

  4. grid-row A shorthand property for the grid-row-start and the grid-row-end properties.

  5. grid-row-end Specifies where to end the grid item.

  6. grid-column A shorthand property for the grid-column-start and the grid-column-end properties.

  7. grid-column-end Specifies where to end the grid item.

  8. grid-column-gap Specifies the size of the gap between columns.

  9. grid-column-start Specifies where to start the grid item.

To conclude that, we should use it because it makes our life very easy. In addition to that, it is one kind of template which are used to create a webpage very nicely without taking stress to use float and position property...โ€ฆ You can refer to more properties of the CSS grid...โ€ฆ๐Ÿ˜„

Reference:
developer.mozilla.org/en-US/docs/Web/CSS/CS..

ย