CSS Flashcards

1
Q

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

A

row

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

no wrap

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

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

A

Beacause they are block elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

What is the default value for the position property of HTML elements?

A

Static

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

How does setting position: relative on an element affect document flow?

A

relative position moves an element to where it would normally flow

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

How does setting position: relative on an element affect where it appears on the page?

A

it would act as static, unless other positioning elements are included

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

How does setting position: absolute on an element affect document flow?

A

removes element from the flow

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

How does setting position: absolute on an element affect where it appears on the page?

A

It’s taken out of the pages, other elements are unaffected

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

How do you constrain an absolutely positioned element to a containing block?

A

By using the positioning schemes, (i.e top, right, left, bottom)

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