Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to hide the scroll bar on an HTML textarea element?

Is it possible to hide the scroll bar on an HTML textarea element using CSS or any other means ?

like image 837
Ebircsa Avatar asked Dec 01 '08 13:12

Ebircsa


People also ask

How do I get rid of the scrollbar in HTML?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML.

How can I remove horizontal scrollbar from textarea?

To prevent the resizing of the textarea you can use resize: none . To avoid scrollbars you can use overflow: hidden or just overflow-x: hidden to hide them only horizontally.

How do I enable scroll disabled in textarea?

the easiest way would be to use "readonly" instead. another way would be to use a fixed-height div will overflow:scroll that looks like a textarea but isn't.


1 Answers

style="overflow:hidden"

Not sure why you'd want to do that, though.

like image 136
victoriah Avatar answered Oct 25 '22 20:10

victoriah