See more
You may have been told that position: fixed is relative to the viewport. This is not true.
position: fixed