In the last article, we learned about the need of using css grid and what it actually changes in designing web pages rather than using other positioning methods like float and inline-blocks. Now let's move forward to know some of the basic terms of css grids and understand it.
That's all for today. In the next article, we will actually start learning about various grid classes, properties and values. Learning grid is little bit longer but once you learned it you are going to start your web design with it.
#keepCoding
Important Terms
Before actually knowing how to create a grid layout let's clear our terminology about it.
Grid Container
It is the direct parent of all the grid items. This is the element on which display: grid is applied. In the given example, the container is the grid container.
1 2 3 4 5 | <div class="container"> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> |
Grid Items
The children(direct) of the grid container. Here the item elements are grid items, but item1 isn't.1 2 3 4 5 6 7 | <div class="container"> <div class="item"></div> <div class="item"> <div class="item1"></div> </div> <div class="item"></div> </div> |
Grid Line
Dividing lines that make the structure of the grid. These lines divide entire vertical space into columns and horizontal space in rows.Grid Track
The space between two adjecent grid lines. These space can be any column or any row.Grid Cell
Any space between two adjecent rows and two aadjacentcolumn grids to form a rectangular unit of grid.That's all for today. In the next article, we will actually start learning about various grid classes, properties and values. Learning grid is little bit longer but once you learned it you are going to start your web design with it.
#keepCoding
Comments
Post a Comment