CSS-POSITIONING Flashcards
What is the default value for the position property of HTML elements?
The default value for the position property of HTML elements position static.
How does setting position: relative on an element affect document flow?
Setting position: relative on an element does not affect document flow.
How does setting position: relative on an element affect where it appears on the page?
Setting position: relative on an element does not affect where it appears on the page.
How does setting position: absolute on an element affect document flow?
Other elements will act like doesn’t exist when setting position: absolute on an element affect document flow.
How does setting position: absolute on an element affect where it appears on the page?
Setting position: absolute on an element will affect where it appears on the page by aligning itself to the first non static positioned parent.
How do you constrain an absolutely positioned element to a containing block?
You constrain an absolutely positioned element to a containing block by assigning its parent a non-static position value.
What are the four box offset properties?
four box offset properties:
- top
- bottom
- left
- right