What is the difference between relative, absolute, fixed, and sticky positioning in CSS?

Answer

div {
  position: relative; /* Try changing to absolute, fixed, or sticky */
  top: 10px;
}

Learn more about CSS positioning.