The w3-navbar class creates a horizontal navigation bar. On smaller screens, it will stack to vertical (resize the browser window to see the effect).
Full-width navigation bars:
In a container: