Flexbox Flashcards

1
Q

display: flex

A

container property
Defines a flex container

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

flex-direction

A

container property

row - (default, left to right)
row-reverse - right to left
column - top to bottom
column-reverse - bottom to top

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

flex-wrap

A

container property

nowrap - default, all items will be on one line
wrap - will wrap onto multiple lines from top to bottom
wrap-reverse - will wrap onto multiple lines bottom to top

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

flex-flow

A

container property

shorthand for flex-direction and flex wrap
default value is flex-flow: row nowrap

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

justify-content

A

container property

aligns along main axis
flex-start - packed to start of flex-direction
flex-end - packed to end of flex direction
center - items centered along the line
space-around - itmes evenly distributed with equal space around them
space-between - items evenly distributed, first item on start line, last item on end line

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

align-items

A

container property
aligns along the cross axis

stretch - default, stretch to fill the container (respecting min-width/max-width)
flex-start - placed at start of cross axis
flex-end - placed at end of cross axis
center - centered on the cross axis;
baseline - aligned so bases are aligned

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

align-content

A

container property
Aligns content along the cross axis, like justify content
Only works with flex-wrap: wrap

flex-start, flex-end, center, space-between, space-around, stretch

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

gap, row-gap, column-gap

A

container property
controls the space between items
does not control outer edges

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

align-self

A

children property
overrides default alignment for individual flex-items
flex-start, flex-end, center, baseline, stretch

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

order

A

children property
controls the order in which flex items appear

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

flex-grow

A

children property
takes a unitless number
dtermines the amount of available space in the flex container an item will take up

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

flex-shrink

A

children property
definies ability for a flex item to shrink if necessary
takes a unitless number

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

flex-basis

A

children property
defines the default size of an element
can be lenght or keyword

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

flex

A

children property
Shorthand for flex-grow, flex-shrink, flex-basis
e.g. flex: 2 1 30em;

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

flex-flow

A

container property
Shorthand for flex-direction and flex-wrap
e.g. flex-flow: row wrap

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

place-content

A

container property
Shorthand for align-content and justify-content
e.g. place-content: center flex-end
(aligns content center, and justifies content flex end)