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 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.
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.
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.