Visual design. Lock an Element to its Parent with Absolute Positioning
Lock an Element to its Parent with Absolute Positioning The next option for the CSS position property is absolute, which locks the element in place relative to its parent container. Unlike the relative position, this removes the element from the normal flow of the document, so surrounding items ignore it. The CSS offset properties (top or bottom and left or right) are used to adjust the position..