Use CSS Grid units to Change the Size of Columns and Rows
Summary
- Absolute and relative units can be used to define the size of rows and columns.
fr
: sets the column or row to a fraction of the available space, auto
: sets the column or row to the width or height of its content automatically, %
: adjusts the column or row to the percent width of its container.
Final Code