Enable vertical scrolling on textarea

Posted by Hozefa on Stack Overflow See other posts from Stack Overflow or by Hozefa
Published on 2011-12-20T19:41:47Z Indexed on 2012/10/14 9:37 UTC
Read the original article Hit count: 151

Filed under:
|

I have a textarea that I want to enable vertical scrolling. When I exceed the height of the textarea, it increases in size. The scroll bar does not appear. I want that a vertical scroll bar appears and the users are not able to resize the text area as well.

I searched online and tried solutions posted, but none seem to work.

Demo: http://jsfiddle.net/hozefa/8fv6e/

CSS:

#imageURLId{
font-size: 14px;
font-weight: normal;
resize: none;
overflow-y: scroll;
}

HTML:

<label for="aboutDescription" id="aboutHeading">About</label>
<textarea rows="15" cols="50" id="aboutDescription"
    style="resize: none;"></textarea>
<a  id="imageURLId" target="_blank">Go to
    HomePage</a>

© Stack Overflow or respective owner

Related posts about html

Related posts about css