Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable default scroll bar for textareas in IE8?

I am going through some of my older sites where I have a contact form and in IE8 there always is a vertical scroll bar displayed for my textareas, even when there is no content.

In Firefox, it doesn't seem to make the vertical scroll bar exist until the content in the textarea reaches a height that deems them necessary.

I have styled my input boxes on my older sites, and a scroll bar appearing by default makes them look quite ugly.

My question, is there anything I can do about this, or is it just a default IE8 behaviour?

I've tried setting overflow: auto but it has not worked.

like image 400
alex Avatar asked Jul 31 '09 00:07

alex


1 Answers

I can't test on IE8 right now, but I can tell you that this works in IE6:

textarea {
  overflow-y: auto;
}
like image 90
shuckster Avatar answered Oct 22 '22 23:10

shuckster