I'm trying to create a navigation so that the overflow is scrollable left and right when the display is too small (I.e mobile) and with no scrollbar
See the following page that does exactly this:
https://developers.google.com/cast/
(for visitors from the future, maybe look here: https://web.archive.org/web/20150814005541/https://developers.google.com/cast/)
The navigation I'm referring to is:
HOME | GUIDES | REFERENCE | SAMPLES | SUPPORT
If you make your browser window small (or check on mobile) you'll see that the nav is cut off at about "SAMPLES", but you can you can drag left to show "SUPPORT". On desktop you'll have to click in the area and use arrow keys for same effect.
It works with JavaScript turned off, so this is a pure CSS solution.
On inspecting the CSS I can see overflow-y:hidden
is part of it and white-space:nowrap
but that since overflow-y
refers to the vertical access I'm not sure why that features.