How does setting position to relative affect an element?
Setting position to relative moves the element relative to its normal position, without changing the layout around it or affecting other elements.
What happens when setting position to absolute?
Setting position to absolute positions the element absolutely relative to its closest positioned parent element. It is removed from the normal page flow and can overlap other elements.