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 and where the element appears on the page?

A

Relative positioning places the element from its normal flow, moving it up, down, left or right.

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

How does setting position absolute on an element affect document flow and where the element appears on the page?

A

Absolute positioning places the element in relation to the element it is nested in.

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

What are the box offset properties?

A

top, bottom, left and right, which tell the browser how far the element should be placed in its parent element.

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