is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle →. Shuffle™ includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.

Bootstrap class: .fixed-top

<div class="fixed-top bg-primary">Fixed top</div>


Fixed top

Tips 💡

Sass source

/* _position.scss:15 */
.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: $zindex-fixed;

Uses variables

Code copied to the clipboard.

Copying failed

/* _position.scss:15 */

More in Bootstrap Positioning