Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get rid of the vertical scrollbar of a textarea in IE?

There is a nasty right-side inactive scrollbar in the textarea in IE, in FF the textarea is clean. How to make it clean in IE as well?

like image 392
Alex Avatar asked Apr 27 '09 10:04

Alex


3 Answers

Quick experimentation suggests that IE6 and IE8 (unable to test 7 at the moment) both honor the auto value for overflow. Thus, to make the scroll bars appear when necessary, but hidden when not, add the following style rule:

textarea { overflow: auto; }
like image 150
Jason Musgrove Avatar answered Oct 15 '22 12:10

Jason Musgrove


Use the overflow: auto style to only apply scrollbars when needed

textarea { overflow: auto; }
like image 27
roryf Avatar answered Oct 15 '22 11:10

roryf


Landed here initially but the suggested property

textarea { overflow: auto; } 

didn't work for me, so I checked a similar SO question and got an answer that worked fine

textarea { overflow-y: auto; }
like image 1
Camilo Martinez Avatar answered Oct 15 '22 12:10

Camilo Martinez