css-positioning Flashcards
What is the default value for the position property of HTML elements?
Static
How does setting position: relative on an element affect document flow?
does not affect document flow
How does setting position: relative on an element affect where it appears on the page?
does not affect the appearance of the page.
relative to the original position.
How does setting position: absolute on an element affect document flow?
It removes it entirely.
Moves it out completely from the document flow.
How does setting position: absolute on an element affect where it appears on the page?
tries to go into a non-static container/parent element it first encounters
How do you constrain an absolutely positioned element to a containing block?
Any position value besides NON-STATIC value
What are the four box offset properties?
Top, Right, Bottom, Left (for purpose besides static).
.