Lock an Element to the Browser Window with Fixed Positioning
Summary
- The
fixed
position
property locks an element relative to the browser window. - Removes the element from the normal flow of the document.
- Elements with a fixed position won’t move when the user scrolls.
Final Code