Saurabh Kumar Saurabh Kumar - 4 months ago 42
HTML Question

How to create a fixed size twitter bootstrap text area

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.

Answer

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;
}