Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a Textarea to 100% height in Bootstrap 3?

Tags:

I would like to set a textarea to be 100% height. I'm using Bootstrap 3 but couldn't find an option there.

<div class="container">
<textarea class="form-control" rows="8"></textarea>
</div>

How to do it?

like image 754
Jay Avatar asked Jan 21 '14 15:01

Jay


1 Answers

html, body, .container {
  height: 100%;
}
textarea.form-control {
  height: 100%;
}

See demo on Fiddle

like image 174
davidkonrad Avatar answered Sep 19 '22 03:09

davidkonrad