The w3-top class fixes an element at the top of the browser viewport.
The bar fills the viewport width and stays visible as you scroll.
The body has top padding to reserve space for the fixed bar.
Fixed top bar
Scroll down and watch the fixed bar.
The page content moves while the bar stays in place.
Scroll back up to compare the position of the bar.