position

Specifies the positioning method for an element: static, relative, absolute, fixed, or sticky.

Syntax

css
position: value;

Example

css
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
}
.tooltip {
  position: absolute;
  top: 100%;
  left: 0;
}