Jay Jay - 25 days ago 7
CSS Question

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

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?

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

See demo on Fiddle