css-positioning Flashcards
What is the default value for the position property of HTML elements?
static positioning
How does setting position: relative on an element affect document flow?
doesn’t affect document flow
How does setting position: relative on an element affect where it appears on the page?
relative to where it would be on the page; any adjustments is relative to original position
How does setting position: absolute on an element affect document flow?
removes it from the document flow
How does setting position: absolute on an element affect where it appears on the page?
it becomes relative to the parent; any non-static position
How do you constrain an absolutely positioned element to a containing block?
change it to a non-static
What are the four box offset properties?
top, left, right, bottom