position sticky css

CSS
  div.sticky {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
} h2.pos_left {
  position: relative;
  left: -20px;
}

h2.pos_right {
  position: relative;
  left: 20px;
}position: sticky;
Source

Also in CSS: