8

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

jam
  • 3,640
  • 5
  • 34
  • 50
Ebircsa
  • 387
  • 2
  • 5
  • 14

1 Answers1

24
style="overflow:hidden"

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

Talha
  • 18,898
  • 8
  • 49
  • 66
victoriah
  • 1,394
  • 3
  • 11
  • 24
  • Thanks. The reason is that I need to display some text using javascript in an element that has a "value" attribute and can be multi-line. – Ebircsa Dec 01 '08 at 13:53
  • you could also use a pre or blockquote element – scunliffe Dec 01 '08 at 19:34
  • 4
    You *should* use a different element. Form controls are used to accept use input, not display output. Pick an element with the correct semantics. – Quentin Apr 30 '10 at 11:35
  • Is it possible to hide it, but still be able to scroll? – Marek Mar 04 '16 at 09:54