Placement and Positioning Flashcards

1
Q

how do we make an item display along the full length of a grid?

A

selector_of_container_with_grid_template_in_it {grid-template-columns: 100% }

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

how do we align text?

A

text-align: this must be done in the innermost tag not a parent tag, e.g.

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

difference between grid and flex?

A

generally, grid is for 2D while flex is for 1D there is also differences in wrapping and a few other nuances

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

when using display: flex; what are the properties you can give the justify-content property?

A

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

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

when using display: flex; what are the properties you can give the align-items property?

A

flex-start, flex-end, center, baseline, stretch

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

when using display: flex; what are the properties you can give the flex-direction property?

A

row column row-reverse column-reverse

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

when using display: flex; what are the properties you can give the flex-wrap property?

A

nowrap wrap wrap-reverse

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

when using display: flex; what is the flex-flow property used for?

A

to combine flex-wrap and flex-direction properties

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

into what property can we combine the flex-direction and flex-wrap properties?

A

flex-flow

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

when using display: flex; what are the properties you can give the align-content property?

A

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

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

when is the position property generally used?

A

CSS positioning can be especially useful when you need to position something that cannot be positioned within normal flow.

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