Fixed Positioning in CSS


What is the position: absolute; in CSS: https://www.youtube.com/watch?v=co1KzxAQzEs

The position: fixed; works similar to the position: absolute; but there are two main differences.

Number 1: An element with a fixed position will always stay at the same place even if the page is scrolled.

Number 2: An element with the fixed position is always positioned relative to the body even if the parent element has the position: relative;