CSS Grid Flashcards

1
Q

display: grid

A

Displays an element as a block-level grid container

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

display: inline-grid

A

Displays an element as an inline-level grid container

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

grid-row-start:

A

Defines the row start position of a grid item:

auto (default)
1
2
. . .

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

grid-row-end:

A

Defines the row end position of a grid item:

auto (default)
1
2
. . .

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

grid-column-start:

A

Defines the column start position of a grid item:

auto (default)
1
2
. . .

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

grid-column-end:

A

Defines the column end position of a grid item:

auto (default)
1
2
. . .

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

grid-area:

A

Shorthand property for [grid-row-start] [grid-column-start] [grid-row-end] [grid-column end]:

auto (default)
[Can use area name]

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

grid-auto-columns:

A

Defines the size of grid columns that were created implicitly (targets the undefined columns):

auto (default)
100px
10rem

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

grid-auto-flow:

A

Defines the position of auto-generated grid items:

row (default)
column

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

grid-auto-rows:

A

Defines the size of grid rows that were created implicitly (targets the undefined rows):

auto (default)
100px
10rem

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

grid-column-gap:

A

Defines the gutter between the columns of a grid container:

0 (default)
10px
10rem
10%

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

grid-column:

A

Shorthand property for [grid-column-start] [grid-column-end]

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

grid-gap:

A

Shorthand property for [grid-row-gap] [grid-column-gap]

0 0 (two values)
10px (single value)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

grid-row-gap:

A

Defines the gutter between the rows of a grid container:

0 (default)
10px
10rem

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

grid-row:

A

Shorthand property for [grid-row-start] [grid-row-end]

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

grid-template-areas:

A

Defines areas within a grid container:

none (default)
“header header header
sidebar main main”

17
Q

grid-template-columns:

A

Defines the columns of a grid container:

none (default)
auto (column resizes itself)
80px auto 1rem (mixed units)
40px 1fr 2fr (fractional units to distribute remaining space)

18
Q

grid-template-rows:

A

Defines the rows of a grid container:

none (default)
auto (row resizes itself)
80px auto 1rem (mixed units)
40px 1fr 2fr (fractional units to distribute remaining space)

19
Q

grid-template:

A

Shorthand property for [grid-template-rows] [grid-template-columns] and [grid-template-areas]:

1fr / 1fr (rows first columns second)

“header header” 50px “sidebar main” 200px / 100px auto (area + rows then area + columns)

20
Q

grid:

A

Shorthand property for [grid-template-rows] [grid-template-columns] [grid-template-areas] [grid-auto-rows] [grid-auto-columns] and [grid-auto-flow]