0

I am trying to expand textarea to 100% height of parent.

My code of setting text area "height: 100%;" works in Firefox, IE, but failed in Chrome. like:

enter image description here

Note the parent div height dynamically fills the remaining height space:

JSfiddle link: https://jsfiddle.net/tling/9z25z425/1/

Problem at this line:

<textarea placeholder="textarea won't fill 100% height" style="width: 100%;  height: 100%;  "></textarea>

How to fix this?

Tianyun Ling
  • 1,045
  • 1
  • 9
  • 24

0 Answers0