Flex Box Flashcards

1
Q

align-content

A

determines the vertical spacing between lines to set how multiple lines are spaced apart from each other

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

What are the values available for align-content?

A

flex-start: Lines are packed at the top of the container.
flex-end: Lines are packed at the bottom of the container.
center: Lines are packed at the vertical center of the container.
space-between: Lines display with equal spacing between them.
space-around: Lines display with equal spacing around them.
stretch: Lines are stretched to fit the container.

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

justify-content

A

aligns items horizontally

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

What are the values available for justify-content?

A

flex-start: Items align to the left side of the container.
flex-end: Items align to the right side of the container.
center: Items align at the center of the container.
space-between: Items display with equal spacing between them.
space-around: Items display with equal spacing around them.

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

align-items

A

aligns items vertically

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

What are the values available for align-items?

A

flex-start: Items align to the top of the container.
flex-end: Items align to the bottom of the container.
center: Items align at the vertical center of the container.
baseline: Items display at the baseline of the container.
stretch: Items are stretched to fit the container.

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

flex-direction

A

defines the direction items are placed in the container

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

What are the values available for flex-direction?

A

row: Items are placed the same as the text direction.
row-reverse: Items are placed opposite to the text direction.
column: Items are placed top to bottom.
column-reverse: Items are placed bottom to top.

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

order

A

reorder items. By default, items have a value of 0, but we can use this property to also set it to a positive or negative integer value (-2, -1, 0, 1, 2).

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

align-self

A

This property accepts the same values as align-items and its value for the specific item.

.yellow {
align-self: flex-end;
}

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

flex-wrap

A

Spread out items on other rows

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

What are the values available for flex-wrap?

A

nowrap: Every item is fit to a single line.
wrap: Items wrap around to additional lines.
wrap-reverse: Items wrap around to additional lines in reverse.

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

The two properties flex-direction and flex-wrap are used so often together that the shorthand property _______ was created to combine them

A

flex-flow

Example:
flex-flow: flex-direction flex-wrap;
flex-flow: column wrap;

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

align-content: flex-start;

A

Lines are packed at the top of the container.

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

align-content: flex-end;

A

Lines are packed at the bottom of the container.

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

align-content: center;

A

Lines are packed at the vertical center of the container.

17
Q

align-content: space-between;

A

Lines display with equal spacing between them.

18
Q

align-content: space-around;

A

Lines display with equal spacing around them.

19
Q

align-content: stretch;

A

Lines are stretched to fit the container.

20
Q

justify-content: flex-start;

A

Items align to the left side of the container.

21
Q

justify-content: flex-end;

A

Items align to the right side of the container.

22
Q

justify-content: space-between;

A

Items display with equal spacing between them.

23
Q

justify-content: space-around;

A

Items display with equal spacing around them.

24
Q

align-items: flex-start;

A

Items align to the top of the container.

25
Q

align-items: flex-end;

A

Items align to the bottom of the container.

26
Q

align-items: center;

A

Items align at the vertical center of the container

27
Q

align-items: baseline;

A

Items display at the baseline of the container

28
Q

align-items: stretch;

A

Items are stretched to fit the container.

29
Q

flex-direction: row;

A

Items are placed the same as the text direction.

30
Q

flex-direction: row-reverse;

A

Items are placed opposite to the text direction.

31
Q

flex-direction: column;

A

Items are placed top to bottom.

32
Q

flex-direction: column-reverse;

A

Items are placed bottom to top.

33
Q

flex-wrap: nowrap;

A

Every item is fit to a single line.

34
Q

flex-wrap: wrap;

A

Items wrap around to additional lines.

35
Q

flex-wrap: wrap-reverse;

A

Items wrap around to additional lines in reverse.