Use bootstrap position utilities to position an element to the top of the viewport. See the examples.

Detailed documentation and more examples you can find in our Bootstrap Position Docs


Example

<div class="fixed-top">...</div>

Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down


Scroll down