Firefox / CSS / JavaScript / Printing

    Date: 03/09/09 (Web Development)    Keywords: css, html, xml, java

    I have an XSL transform that turns an XML document into HTML. There is a div that contains data and scrolls by using CSS: overflow: auto;. When printing or when JavaScript is disabled, I would like to simply display the contents: overflow: visible;. However,

    This works for printing, but not when JavaScript is disabled.

    My next thought was to use JavaScript, something along these lines: