CSS positioning Flashcards
What is the default value for the position property of HTML elements?
statisic
How does setting position: relative on an element affect document flow?
doesn’t break normal flow
How does setting position: relative on an element addect where it appears on the page?
it doesn’t but values of top, right, botton & left
How does setting position:absolute on an element affect document flow?
absolute allows you to posion anywhere you like.
is removed from the norma document flow
How does setting position: absolute on an element affect where it appears on the page?
top
How do you constrain an absolutely positioned element to a containing block?
using the any non-statisic(fixed, relative) position
What are the four box offset properties?
top, right, bottom, left