flex box Flashcards

1
Q

display: flex;

A

turns container into flex container

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

main axis

A

x-axis

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

cross axis

A

y-axis

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

what are child elements called of flex container

A

flex items

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

flex-direction

A

sets main axis

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

flex-wrap

A

controls whether items should wrap or not when they exceed containers width

allows items to appear on multiple lines

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

justify-content

A

aligns items along main axis

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

align-items

A

aligns items along cross axis

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

align-content

A

aligns multiple lines of items along cross axis

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

align-self

A

overrides the default or assigned (with align-items) alignment for an individual item in a flex container

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

flex-grow

A

controls how much a flex item should grow relative to the other items when there is available space

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

flex-shrink

A

controls how much a flex item should shrink relative to the other items when there is not enough space

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

flex-basis

A

default size of flex item before any growing or shrinking

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

flex

A

flex-grow flex-shrink flex-basis
1 2 100px

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

center an item

A

display: flex;
justify-content: center;
align-items: center;

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

create a row of responsive items and/or cards using flexbox

A

.container styling{
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.card {
flex: 1 1 100px;
}

@media (max-width: 600px) {
.card {
flex: 1 1 50px;
}
}