Hide html horizontal but not vertical scrollbar
Posted
by williamjones
on Stack Overflow
See other posts from Stack Overflow
or by williamjones
Published on 2010-04-07T17:00:03Z
Indexed on
2010/04/07
17:03 UTC
Read the original article
Hit count: 262
I have an html textarea that is of fixed width, but variable height. I would like to set overflow:scroll and be able to show a vertical scrollbar, but not a horizontal one. I am not able to use overflow:auto due to other things specific to my situation.
I know there is no way using CSS 2 to show only vertical but not horizontal scrollbars. Is there anything I can do with javascript to hide the horizontal scrollbar?
© Stack Overflow or respective owner