Pritesh Kiri
Pritesh Kiri

@PriteshKiri

11 Tweets 4 reads Oct 17, 2022
πŸ“ŒJust like Flexbox containers we have Grid containers but have different container properties.
Simplifying GRID layout for you in this thread 🧡
( PART - 2)
As I said, the grid is complicated and has lots of properties to learn about.
Following are the grid container properties.
1. grid
2. gap
3. justify items
4. align items
5. place items
6. justify content
7. align content
8. place content
▢️grid:
It is a shorthand property for the following:
βž€ grid-template-rows
➁ grid-template-columns
βž‚ grid-template-areas
βžƒ grid-auto-rows
βž„ grid-auto-columns
βž… grid-auto-flow
βž€ grid-template-rows:
This property specifies the number of rows and their height in a grid layout.
➁ grid-template-column:
This property specifies the number of columns and their width in a grid layout.
βž‚ grid-template-areas:
This property specifies areas within the grid layout.
βžƒ grid-auto-rows:
It sets the size for the rows in a grid container.
βž„ grid-auto-columns:
It sets size for the column in a grid container
Note: grid-template- properties are used to define the position and size, and grid-auto-* properties are used to define the size.
EXPLICIT GRID :
The three properties grid-template-rows, grid-template-columns, and grid-template-areas together define the explicit grid.
IMPLICIT GRID:
When grid items are positioned outside of the explicit grid, the grid generates implicit grid tracks.
βž… grid-auto-flow :
This property controls how auto-placed items get inserted into the grid.
Here, it auto-fills the columns.
That's a wrap!!!!!🎁
I hope, the grid property was clear to you.
In the next thread, I will discuss other grid container properties.
Stay tuned and keep practicingπŸ™Œ
Thanks for reading this thread till the end πŸ˜ƒ
πŸ”– Bookmark this thread for the future
πŸ”ƒ Retweet the first tweet
πŸš€ Follow @PriteshKiri for more daily web development tips and tricks
#codewithcoffee #codewithcoffeeindia

Loading suggestions...