Our webpage features several large textareas with fixed heights like this:
<textarea id="qt_107" name="qt_107" style="width:695px;height:150px;" maxlength="8000" question="107" class="">
I am currently working on the print CSS for this page and we want the height of the textareas to adjust to display all the text within them.
I have searched online for a solution but only found JQuery/JavaScript methods that affect all media types, not just print.
I attempted height:auto!important;
but it did not produce the desired result.
Thank you
Edit: I realize that achieving this without JavaScript is impossible. Is there a way to run the JavaScript only in the print view and not on the screen?