How to create a fixed size twitter bootstrap text area

Saurabh Kumar picture Saurabh Kumar · Mar 6, 2013 · Viewed 74.7k times · Source

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

Oliver picture Oliver · Mar 6, 2013

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.