css-positioning Flashcards

1
Q

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

A

the default position property for html elements is static

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

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

A

By using offset properties you can position the element on the page in relation to what its normal flow is

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

How does (position:absolute) have an affect on document flow?

A

The box is taken out of normal flow and the other elements pretend it isn’t there

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

How does setting (position:absolute) affect how the element appears on the page?where/howdoesitappear

A

By using the box offset properties (top, bottom, left, right) you can specify where the element should appear in relation to its containing element.

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

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

A

You set the parent container to non static, more specifically relative, bc relative doesn’t affect document flow.

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

What are the four offset properties?

A

top, bottom, left, right

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