434,047 views
35 votes
35 votes
The coordinates for the section element need not be defined as long as its position is set to

User Afkfurion
by
2.9k points

1 Answer

21 votes
21 votes

Answer:

relative.

Step-by-step explanation:

The coordinates for the section element need not be defined as long as its position is set to relative.

If the position is set as relative, then it will have no effect on the positioning attributes, it will consider as static position. If positioning is mentioned explicitly like top: 20px; then it will position 10 pixels down from where it is located. An ability for positional shifts is extremely helpful.

Two things happen when an element is set as relative, one is it introduces the ability to use z-index on that element, second is it limits the scope of absolutely positioned child elements.

User Andrea
by
3.6k points