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?
It takes them out of the normal document flow (placeholder in effect)
How does setting position: relative on an element affect where it appears on the page?
it adjusts the position based off where it originally was
How does setting position: absolute on an element affect document flow?
Completely removes it from the document flow (No placeholder)
How does setting position: absolute on an element affect where it appears on the page?
It can be placed anywhere on the document regardless of any other elements in place
How do you constrain an absolutely positioned element to a containing block?
By making the element a child to a relative positioned element