0

Do I need to explicitly set the dimensions (width and height) of the container in css grid?

I have got a container that needs to be layout using grid properties. The question there is, how can I set up the Dimension of the grid items? Do I need to use the grid-template-columns and grid-template-rows to set up the dimension of the container or I can do it by assigning a did I mention the width and the height

14th Jan 2023, 7:20 AM
DN Josh
DN Josh - avatar
1 Réponse
0
You can either set the dimensions of the grid items by using grid-template-columns and grid-template-rows on the container or by using the width and height properties on the grid items.
14th Jan 2023, 8:07 AM
Calviղ
Calviղ - avatar