css-positioning Flashcards
What is the default value for the position property of html elements?
the default position property for html elements is static
How does setting (position:relative) affect where an element appears on the page?
By using offset properties you can position the element on the page in relation to what its normal flow is
How does (position:absolute) have an affect on document flow?
The box is taken out of normal flow and the other elements pretend it isn’t there
How does setting (position:absolute) affect how the element appears on the page?where/howdoesitappear
By using the box offset properties (top, bottom, left, right) you can specify where the element should appear in relation to its containing element.
How do you constrain an absolutely positioned element to a containing block?
You set the parent container to non static, more specifically relative, bc relative doesn’t affect document flow.
What are the four offset properties?
top, bottom, left, right