Grid Flashcards
1
Q
How do you use grid-template to create rows and columns?
A
grid-template: 100px 200px / 200px 200px;
The numbers before the / are rows, the numbers after are columns.
2
Q
What does the 1fr stand for after grid-template-rows: 1fr 2fr 2fr?
A
1fr means one fraction. The previous code says to create three rows at a 1 to 2 to 2 ratio.
3
Q
What does the auto keyword do in the following code? grid-template-row: 200px auto;
grid-template-column: 200px auto;
A
When used with row, it will size the box to fit the content you put in it.
When used with column, it will stretch to fit eh screen.
4
Q
Wgat the
A
5
Q
A