Core tip:CSS Absolute positioning allows you to accurately position the elements in the page independent position, regardless of the other elements of the page positioning settings. Relative positioning refers to the position of the element you are positioning relative to where it is allocated in the file.
CSS absolute positioning allows you to accurately position the elements in the independent position of the page, regardless of the other elements of the page positioning settings. Relative positioning refers to the position of the element you are positioning relative to where it is allocated in the file. Cases:
I {position:relative; left:40px; top:10px}
The key to relative positioning is that the position of the element is positioned relative to where it should normally be located. If you stop using relative positioning, the display position of the text will return to normal.
Use relative positioning to be careful, otherwise it is easy to make the page very messy.
In addition to relative positioning and absolute positioning, you can also use static (static) parameter values. It is used in the same way as the normal HTML positioning method, and cannot attach special positioning settings.
Isn't it good? Here we will learn how to control the elements that are positioned.