Sticky element

.sticky {
  position: sticky;
  top: 0;
}
  • css