CSS-Positioning Flashcards

1
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
2
Q

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

A

It does not affect the positioning of elements surrounding the relative positioned element

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

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

A

It moves an element from its position in normal flow to wherever it is shifted using box-offset properties.

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

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

A

Other elements in document flow will ignore the absolute positioned element as if it did not exist.

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

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

A

It takes the positioned element out of normal flow

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

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

A

You set it’s containing blocks position to relative or any non static position.

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

What are the four box offset properties?

A

Top, Bottom, Left, Right

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