https://www.freecodecamp.org/news/learn-the-basics-the-css-position-property/
<< We will also give its parent element a relative position so that it does not get positioned relative to the element. >>
.parent-element {
position: relative;
height: 100px;
padding: 10px;
background-color: #81adc8;
}
I’m not quite certain that I understand what is going on here. I am guessing that the parent element is being positioned relative to the html element - correct? And the sole reason for using this line - position: relative - is so that the
position: absolute property of .main-element is connected to the parent element - correct?