javascript - How to make div take all the height available? -


i have html:

<div>   <span></span>   <textarea></textarea> </div> 

the span can take 1 or more lines (depends on text has , size of div). want textarea take of height left in div.

please no jquery.

https://jsfiddle.net/ntme8lt4/

the css/style tag max-height:100%; , width:100%;

this hold div's size constant if set percentage of parent container or constant value 900px.

since size of span not known, leave unspecified auto-sizes content.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -