CSS-POSITIONING Flashcards

1
Q

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

A

The default value for the position property of HTML elements 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

Setting position: relative on an element 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

Setting position: relative on an element does not affect where it appears on the page.

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

Other elements will act like doesn’t exist when setting position: absolute on an element affect document flow.

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

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 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 constrain an absolutely positioned element to a containing block by assigning its parent a non-static position value.

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

four box offset properties:

  • top
  • bottom
  • left
  • right
How well did you know this?
1
Not at all
2
3
4
5
Perfectly