Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a TextBox control that is multiline not be resizable?

Tags:

asp.net

How can I make a TextBox control that is multiline not be resizable?

I am using asp.net with c# and I can't find an option to do this

like image 353
Meme Avatar asked May 23 '11 12:05

Meme


People also ask

How can make multiline TextBox not resizable in asp net?

The solution to this problem is available in CSS3 and fortunately all the three browsers do support CSS3 and hence we can make use of resize CSS property of TextArea. You can either do it by setting it directly in the style attribute.

How will you create multiline text box?

To create a multi-line text input, use the HTML <textarea> tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows.

What is multiline in TextBox?

A multiline text box control is a large text box that can display several lines of text or accept this text from user input. Text boxes are often linked to select value lookups and detailed menus. You can place a multiline text box control within a section control.


1 Answers

You should be able to disable textarea resizing in Chrome and Safari with this css:

textarea {     resize: none; } 
like image 177
Nick Avatar answered Nov 04 '22 16:11

Nick