Grid Flashcards
Which property creates gutters between grid columns?
grid-column-gap
Which property creates gutters between grid rows?
grid-row-gap
Which property creates grid rows?
grid-template-rows
Which property creates grid columns?
grid-template-columns
Shorthand property to create grid gaps.
grid-gap row-gap col-gap | rowcol-gap
Shorthand property to create grid templates.
grid-template
Share the available space equally between 3 grid columns.
grid-template-columns: 1fr 1fr 1fr;
Share the available space equally between 12 grid columns.
grid-template-columns: repeat(12, 1fr);
Reserve 50% of available space for the 1 grid column and share the rest between 2 more columns.
grid-template-columns: 50% repeat(2, 1fr);
Which properties can be replaced with shorthand property grid-area? (4 properties)
grid-row-start | grid-row-end | grid-column-start | grid-column-end
What is the shorhand for grid-row-start and grid-row-end properties
grid-row: #start / #end;
What is the shorhand for grid-column-start and grid-colum-end properties
grid-column: #start / #end;
What is the shorthand for grid-row and grid-column properties?
grid-area: #row-start / #col-start / #row-end / #col-end;
What is the first parameter of grid-area?
starting row line
What is the second parameter of grid-area?
starting column line
What is the third parameter of grid-area?
ending row line
What is the fourth parameter of grid-area?
ending column line
What is the first parameter of grid-row?
starting row line
What is the second parameter of grid-row?
ending row line
What is the first parameter of grid-column?
starting column line