Bootstrap CSS Classes

Bootstrap CSS class .sticky-top

<div class="sticky-top bg-primary">Sticky top</div>

Preview

Are you tired of writing HTML by hand?

CSS source

/* _position.scss:31 */
.sticky-top {
  @supports (position: sticky) {
    position: sticky;
    top: 0;
    z-index: $zindex-sticky;
  }
}

More Bootstrap CSS classes in Positioning category

© 2024 Shuffle. All rights reserved.