tags:

views:

71

answers:

4

Is it possible to set a to add a scroll-bar vertically but clip horizontally?

EDIT I see some mention on CSS3 in answers. Which browsers support this?

+2  A: 

Yes.

overflow-y: auto;
overflow-x: hidden;
VoteyDisciple
+6  A: 
html { overflow-x:hidden; overflow-y:auto; }

or { overflow-y:scroll; }

Haven't tested but try it.

meder
for IE8 you may also need -ms-overflow-x: hidden;
gruntled
@gruntled Is overflow-x/y CSS3? I didn't see it when I was looking at overflow reference online originally.
John
+3  A: 
overflow: auto;     /* For CSS 2 user agents */
overflow-x: hidden; /* For UAs implementing the CSS 3 property */
David Dorward
A: 

overflow-x: auto; <- for horizontal scrolling overflow-y: auto; <- for vertical scrolling

carny666