The w3-top class keeps the bar at the top of the viewport while the page scrolls.
The body has 64px of top padding so the bar does not cover the content.
Fixed top bar
Scroll down and watch the fixed bar.
The content moves while the bar stays in place.
Scroll back up to compare the positions.