Posted by : Jebastin Sunday 15 December 2013

We need to disable the re-sizable property of a TextArea. Normally, we can resize a TextArea by clicking on the bottom right corner of the TextArea and dragging the mouse. The following CSS is used to disable this behaviour.

Use the following CSS rule to disable this behavior for all TextArea elements:
  1. textarea {
  2.     resize: none;
  3. }
If you want to disable it for some (but not all) TextArea elements, you have a couple of options (thanks to this page).

To disable a specific TextArea with the name attribute set to foo (i.e., <TextArea name="foo"></TextArea>):
  1. textarea[name=foo] {
  2.     resize: none;
  3. }
Or, using an ID (i.e., <TextArea id="foo"></TextArea>):
  1. #foo {
  2.     resize: none;
  3. }

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Link To This Post/Page

Spread The Word

Add this button to your blog:
JJ Technology Solutions

Blog Archive

Trackers

eXTReMe Tracker
facebook

- Copyright © JJ Technology Solutions - Powered by Source Code Solutions -