.static-example .positioned-element {
  background: green;
  left: 100px; 
}
 .relative-example .positioned-element {
  background: lightblue;
  position: relative;
  left: 100px; 
  top: 50px;
  z-index: -1;
}
.absolute-example { 
  position: relative; 
  min-height: 160px;
}
.absolute-example .positioned-element {
  background: red;
  position: absolute;
  top: 0;    
  right: 0;  
}
.fixed-example .positioned-element {
  background: rebeccapurple;
  position: fixed;
  width: 100%;
  height: 48px;
  top: 0;
  left: 0;
  z-index: 9999;
}
.sticky-example .positioned-element {
  background: orange;
  position: sticky;
  top: 50px;
}