To explain the relationship between the two in detail, you need to use examples, please look at the examples first:
The following is a quotation fragment:
Div CSS Example, Wayhome's Blog
position :absolute;
top: 5px;
right: 20px;
position: absolute;
left: 20px;
bottom: 10px;
position : absolute;
top: 5px;
left: 5px;
position: relative;
left: 150px;
width : 300px; height: 50px;