Home » Html » How to create a fixed size twitter bootstrap text area [closed]

How to create a fixed size twitter bootstrap text area [closed]

Posted by: admin November 29, 2017 Leave a comment

Questions:

I want to create a fixed sized text area which cannot be dragged to change the size. How can I make a text area fixed size in Twitter Bootstrap.
How can its size be fixed? By fixed size I mean fixed number of cols and rows.

I went through the documentation but didn’t get any clue.

Answers:

You could also set the css style width and min-width so as the height and min-height as well as max-width and max-height. just another suggestion.

textarea{ 
  width: 200px; 
  min-width:200px; 
  max-width:200px; 

  height:200px; 
  min-height:200px;  
  max-height:200px;
}

Questions:
Answers:

Add this to your CSS:

textarea { resize:none; }

or this for fixed width (and keep vertical resizing):

textarea { resize:vertical; }

Note that this is not supported by opera and internet explorer.