CSS-Positioning Flashcards
1
Q
What is the default value for the position property of HTML elements?
A
Static
2
Q
How does setting position: relative on an element affect document flow?
A
It does not affect document flow, stays in the same direction as before
3
Q
How does setting position: relative on an element affect where it appears on the page?
A
Does not change at all
4
Q
How does setting position: absolute on an element affect document flow?
A
First non-static element it encounters
5
Q
How do you constrain an absolutely positioned element to a containing block?
A
the block should have
position: relative
6
Q
What are the four box offset properties?
A
Top, bottom, left, right