CSS Positioning Flashcards

1
Q

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

A

position: 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

It does not affect document flow

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

You can offset elements away from where they would normally

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

It takes an element out of normal flow and no longer affects elements around it

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

Elements that are set to absolute no longer affect other elements around it.

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

You contain with an element that is non static position

   ex: an element that has its position changed
          position: relative;, position: absolute;, position: fixed;
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 left bottom right

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