An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled: