CSS Positioning Flashcards

1
Q

What is the default value for the position property of HTML elements?

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does setting position: relative on an element affect document flow?

A

only effects the portion that is targeted by position: relative;
keeps document the same just moves the targeted object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does setting position: relative on an element affect where it appears on the page?

A

the element appears in the same spot till moved in the proceeding code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does setting position: absolute on an element affect document flow

A

taken out of normal flow and is no longer affected by other elements on the page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does setting position: absolute on an element affect where it appears on the page?

A

it allows the element to be invisible to other text or objects on the page.
meaning it can appear anywhere.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you constrain an absolutely positioned element to a containing block?

A

using the relative position setting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the four box offset properties?

A

top, right, bottom, left.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly