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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Wgat the

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly