Account
Categories
Shobha
Shobha
The best way to predict the future is to invent it

What is the difference between grid-template-rows and grid-auto-rows?

The grid-template-rows property in CSS is used to set specific heights for the rows in a grid, allowing you to define the exact size for each row. On the other hand, grid-auto-rows controls the height of rows that are automatically created based on content. When content exceeds the predefined rows, this property ensures that the newly created rows have a consistent height, making the grid adaptable to dynamic content.