Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
print.css combining with <div overflow:auto>?
I want to use a print.css to control what area of my webpage will be printed.
But the text I want to be printed is in a div with overflow:auto. When the page is printed only the text visible on the screen is printed. How can I also let the text of the div not visible been printed?
1 Answer
- Leo DLv 61 decade agoFavorite Answer
You need to specify that the division's overflow is auto within a stylesheet. Because if you use the style attribute, it will be too specific and override anything in the print stylesheet.
You can specify a bigger height for the division or specify that the media is "screen" for overflow: auto.
What I suggest is that instead you specify "overflow: visible;" in the print stylesheet.