CSS to show all textarea Content in HTML for Printing?

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-06-02T08:27:06Z Indexed on 2010/06/02 8:34 UTC
Read the original article Hit count: 383

Filed under:
|
|

What settings do I need to make it so when a user presses "print" in the browser, using a print.css stylesheet, the textareas display all their content (dynamic height) in the printed version, without using javascript?

I have tried this:

textarea {
  overflow: visible;    
  float: none !important; 
  height: auto !important;
}

... but it doesn't work.

Any ideas?

© Stack Overflow or respective owner

Related posts about html

Related posts about css