An element with position:is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed):