Saving DIV scroll position while printing

I would like to print a scrollable div as WYSWYG. Is there a way?

0


a source to share


2 answers


Not with pure css, I don't think so. My ... interpretation of what happens when you press the print button is that the document is reloaded either with media="print"

or another appropriate stylesheet and then sent to print-preview / printer as a new document with all the content at default / start position as defined in this stylesheet.

Since I cannot think of a way to position the scrollable content using css, I must say this is not possible. Javascript is almost certainly a good fit for this.



... may I ask why you want to do this? This is not a criticism, I just ... don't understand.

0


a source


I don't think you can do this even with javascript. This is contrary to the spirit of the Internet. The printed document should look different.



I suspect that when you see scrollbars on a printed page, this is a bug that will be fixed in a future version of the browser.

0


a source







All Articles