It is not clear to me now what the effect of position is, or what circumstances need to be specified for relatieve and what circumstances need absolute?
<div style= "Position:relatieve" >
<p data-indent= "1" > <span style= "position:absolute;left:10px;top10px;" > </span ></div >
Above is an example of using position when you need to specify the position of an element relative to its parent element
The outer element is set to Position:relatieve and the inner element is set to Position:absolute;
You can then set the position of the inner element relative to the outer element by left, top, bottom, right.
I tried it, too:
The parent element is the absolute child element as absolute, and the effect is that two rectangles intersect each other but do not completely overwrite
The parent element is the relative child element as relative, and the effect is that the parent element overrides the child element
When the parent element is a absolute child element as relative, the effect is that the parent element overrides the child element
The parent element is the relative child element as relative, and the effect is that the parent element overrides the child element
I now understand the circumstances of the use of position, but do not understand how we determine whether the effect is relative or absolute, can you elaborate on the next? Kazakhstan
The doubts about position