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?
only effects the portion that is targeted by position: relative;
keeps document the same just moves the targeted object
How does setting position: relative on an element affect where it appears on the page?
the element appears in the same spot till moved in the proceeding code
How does setting position: absolute on an element affect document flow
taken out of normal flow and is no longer affected by other elements on the page
How does setting position: absolute on an element affect where it appears on the page?
it allows the element to be invisible to other text or objects on the page.
meaning it can appear anywhere.
How do you constrain an absolutely positioned element to a containing block?
using the relative position setting
What are the four box offset properties?
top, right, bottom, left.