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 does not affect the positioning of elements surrounding the relative positioned element
How does setting position: relative on an element affect where it appears on the page?
It moves an element from its position in normal flow to wherever it is shifted using box-offset properties.
How does setting position: absolute on an element affect document flow?
Other elements in document flow will ignore the absolute positioned element as if it did not exist.
How does setting position: absolute on an element affect where it appears on the page?
It takes the positioned element out of normal flow
How do you constrain an absolutely positioned element to a containing block?
You set it’s containing blocks position to relative or any non static position.
What are the four box offset properties?
Top, Bottom, Left, Right