Monday, 17 September 2012

How to stop multiline textbox resizing

Multi line textbox is a form control .where user can enter multiple line of text.
We can specify the size of textbox but user can change it run time using mouse
if you want to stop it paste following css in your text box HTML tag

style="resize: none;"

<textarea  rows="2" cols="20"

style="height:96px;width:185px;resize: none;"></textarea>