Skip to main content

Command Palette

Search for a command to run...

What is CSS Grid ???

CSS GRID LAYOUT......

Updated
2 min read
What is CSS Grid ???

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:
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout

M

What a great article. I have learned a lot of knowledge about CSS Griid by reading this post. Thanks to the author of this post. I used to follow EZYTOR Easy Website Editor for Developers

After reading this post I decided to keep your profile on my favorites list.

T

Thank you so much dear. If this post will be helpful so definitely I will try to give my best for another articles

1
M

waiting for the next special! @Tanvi