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
Does not affect doc flow
3
Q
How does setting position: relative on an element affect where it appears on the page?
A
relative to where it is on a page
4
Q
How does setting position: absolute on an element affect document flow?
A
Takes it out of the document flow
5
Q
How does setting position: absolute on an element affect where it appears on the page?
A
Attaches to a non static parent
6
Q
How do you constrain an absolutely positioned element to a containing block?
A
set its containing block to non static positioning