CSS3 FlexBox Flashcards

1
Q

Define the ‘flex-flow’ attribute.

A

flex-flow: direction wrap
For example
flex-flow: column-reverse wrap;

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

List the flex ‘main’ and ‘cross’ directions.

A

row, row-reverse, column, column-reverse

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

What is the default direction?

A

row (horizontal)

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

Define ‘justify-content’.

A

Aligns along the main axis with either flex-start (default), flex-end, center, space-between, or space-around.

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

List four kinds of alignments.

A

justify-content, align-content, align-item, align-self

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

What are the kinds of flex-direction settings?

A

row and column (row, row-reverse, column, column-reverse)

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

What is the difference between flex and inline-flex?

A

Flex consumes the entire horizontal line while inline-flex only wraps the flex-items it contains.

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

Define align-self.

A

Aligns only the specified item as flex-start, flex-end, center, stretch, or baseline.

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

How to allow flex-items to wrap if there isn’t enough room?

A

flex-wrap: wrap;

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

How does flex-grow affect the sizing if there isn’t enough room?

A

The sizing remains the same as the flex-basis.

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

Does the ‘order’ grouping change the logical (tabbed) order?

A

No.

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

Define ‘align-item’.

A

The items are aligned according to flex-start, flex-end, center, stretch, or baseline.

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

Define the ‘flex’ attribute.

A

flex: grow shrink basis
Example
flex: 0 1 2em

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

How do you set up a div to be a flex box container?

A

CSS: .container {
display: flex;
}

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

What are the kinds of flex-direction settings?

A

row and column (row, row-reverse, column, column-reverse)

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

How to prevent items from wrapping in a row when there isn’t enough room?

A

flex-wrap: nowrap

17
Q

Can you set the ‘grow’ value for the container, the item, or both?

A

Both

18
Q

What is the default ‘order’ grouping value?

A

Zero

19
Q

What is the vertical axis called?

A

Cross axis

20
Q

What is the default ‘flex-grow’ value?

A

One

21
Q

What is a basis of ‘auto’?

A

Set the size to the defaults.

22
Q

Define ‘align-content’.

A

The same as justify-content on it applies to the cross-axis AND it only applies to multi-line content.
It aligns the entire content according to flex-start, flex-end, center, space-between, space around, stretch (default), or baseline.

23
Q

What are the objects in a flex box container called?

A

flex items

24
Q

What is the wrapper around flex blocks called?

A

Container

25
Q

What is the horizontal axis called?

A

Main axis