Flexbox Flashcards

1
Q

make .row a flex container

A

.row {
display: flex;
}

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

make .row container a multi-line flex container

A

.row {
display: flex;
flex-wrap: wrap;
}

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

Give .row the flexbox property and value that will place the first and last items along its edges, then equally distribute the space between the other items.

A
.row {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Select the class .column and use the flex item property and value that will expand the columns to fill the space of the row.

A

.column {
flex-grow: 1;
}

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

target .primary and give it twice as much space as the other flex items.

A

.primary {
flex-grow: 2;
}

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

align the columns to the vertical center of .row

A

.row {
align-items: center;
}

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

make .row and inline-flex container

A

.row {
display: inline-flex;
}

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

change flex-direction of .container to column

A

.container {
display: flex;
flex-direction: column;
}

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

reverse the order of .nav items

A

.nav {
display: flex;
flex-direction: reverse-row;
}

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

create a multi-column .container with a limited height of 280px

A
.container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	height: 280px;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

aligns the .container content to the left

A
.container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end; 
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

spreads out items of the container evenly, including the ones close to the edge of the container)

A
.container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around; 
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

left justifies .item-1 and right justifies all other items

A

.item-1 {
margin-right: auto;
}

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

place .item-6 in front of .item-1

A

.item-6 {
order: -1;
}

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