Master the different ways to place elements on your page
Elements flow in normal document order. Cannot use top/right/bottom/left properties.
position: static;
Element is positioned relative to its normal position. Other elements don't adjust.
position: relative;
top: 24px;
left: 24px;
Element is removed from normal flow and positioned relative to nearest positioned ancestor.
/* On parent */
position: relative;
/* On element */
position: absolute;
bottom: 16px;
right: 16px;
Element is positioned relative to viewport. Stays fixed during scrolling.
position: fixed;
bottom: 32px;
right: 32px;
Element toggles between relative and fixed based on scroll position.
position: sticky;
top: 16px;
Try changing the position type and offset values: