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 document flow
How does setting position: relative on an element affect where it appears on the page?
it appears relative to where it would be on the page
How does setting position: absolute on an element affect document flow?
it removes it from the document flow
How does setting position: absolute on an element affect where it appears on the page?
it positions itself on the first non-static containing element
How do you constrain an absolutely positioned element to a containing block?
setting the containing element to non-static
What are the four box offset properties?
top, bottom, right and left