Disable vertical scroll bar on div overflow: auto

joedborg picture joedborg · Oct 4, 2011 · Viewed 369.7k times · Source

Is it possible to allow only a horizontal scroll bar when using overflow:auto (or scroll)?

Answer

Luke picture Luke · Oct 4, 2011

These two CSS properties can be used to hide the scrollbars:

overflow-y: hidden; // hide vertical
overflow-x: hidden; // hide horizontal