Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

How can I disable the resizable property of a textarea?

JamesCroni

Newbie
Messages
2
Reaction score
0
Hello,

I want to the way to disable the resizable property of a textarea. Currently, I can resize a textarea by clicking on the bottom right corner of the textarea and dragging the mouse.

How can I disable this?
 

edwin

Moderator
Messages
40
Reaction score
3
The following CSS rule disables resizing behaviour for textarea elements:

You don't have permission to view the spoiler content. Log in or register now.

To disable a specific textarea with the name attribute set to info (i.e., <textarea name="info"></textarea>):

You don't have permission to view the spoiler content. Log in or register now.

Or, using an id attribute (i.e., <textarea id="info"></textarea>):

You don't have permission to view the spoiler content. Log in or register now.
 

Advertisement

Top