- 
      
      
Grid layout examples
Examples of using Grid Layout (with kittens)
These examples are based on tutorials by Rachel Andrew
Defining a grid
We can define a grid simply by setting the
displayproperty togrid. Defining the columns is as simple as specifying the widths to thegrid-template-columnsproperty. We can do the same for the rows using thegrid-template-rowsproperty. If any more rows are added then we can use thegrid-auto-rowsproperty to define these heights. To specify the gap between columns we can usegrid-column-gapproperty and for rows we can use thegrid-row-gapproperty. If instead we want to specify both at once we can use thegrid-gapproperty. In grid layout terminology we use the term track for referring to a row or a column.