Prep Flexbox Basics Flashcards

1
Q

What is the default flex-direction of a flex container?

A

row from left to right

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

What is the default flex-wrap of a flex container?

A

flex-wrap: nowrap

PARENT

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

What is one of the uses of Flexbox?

A

Layout to arrange items in rows or columns and items will flex (grow or shrink) to fit available space

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

What are the three primary parts of a layout system?

A

Container
Row
Column

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

justify-content

A

spacing and placement of content on PRIMARY AXIS

PARENT

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

align-items

A

basically justify-content on cross axis (secondary axis)

PARENT

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

align-content

A

justifies content on multiple wrapped lines on cross-axis;
does not work on single line

PARENT

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

Why do two div elements “vertically stack” on one another by default?

A

it is their default display property

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

What is the default flex-direction of an element with display: flex?

A

row

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