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
How does setting position: relative on an element affect where it appears on the page?
It is positioned after to wherever it was previously
How does setting position: absolute on an element affect document flow?
The positioned element is taken out of the document workflow and is positioned within the webpage
How does setting position: absolute on an element affect where it appears on the page?
It is positioned nearest the non-static
How do you constrain an absolutely positioned element to a containing block?
relative property to bound descendants
What are the four box offset properties?
top, right, bottom, left