Encountered a troublesome Amazon.com page that appears blank in print preview, specifically the Online Return Center\Your Return Summary page. After much troubleshooting on a locally saved copy of the webpage, I pinpointed the issue to a problematic linked stylesheet causing everything to be hidden during print preview...
@media print {
body *, header {
visibility: hidden;
}
}
However, when attempting to locate and override this source code from the live page using developer tools, I encountered difficulties. Where can I find this structure in the developer tools to ensure the print preview displays correctly?
My Attempts So Far
In the Elements
view, I tried searching for all instances of link rel="stylesheet"
and manually following each href
link to the CSS files to search for the keyword print. This method did lead me to the culprit, but even after removing the link tag and returning to the page to print, I still faced the same blank page. Could it possibly be a server-side issue?
Here is the link found in the head
section:
<link rel="stylesheet" href="https://images-na.ssl-images-amazon.com/images/I/01WIasbg6mL._RC|014yivy0BxL.css_.css?AUIClients/PREXWebAppBuzzAssets-confirmationPage">
Is there anything I can do locally to eliminate this problematic CSS?
For reference, here is the preview I am referring to: https://i.sstatic.net/D263M.png