Use of .fixed-top class
Position fixed at top
The class .fixed-top of Bootstrap sets the position of the element at top of the screen.
Scroll down the page to see the position