➢The position property specifies the type of positioning method used for an element (static, relative, fixed, absolute or sticky).
➢There are five different position values:
➢static
➢relative
➢fixed
➢absolute
➢sticky
position: static;
➢HTML elements are positioned static by default.
➢An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page.
EXAMPLE:
div { position: static; border: 3px solid #73AD21;}
➢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. The top, right, bottom, and left properties are used to position the element.
➢An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).