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.
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
Post a Comment