79148738

Date: 2024-11-01 16:24:22
Score: 5.5
Natty:
Report link

So, I finally got it working but not in the way I'd like. I added the following to my @media Print to override the shared layout's applied css - note none of the following classes are specifically referenced or created on my page.

body,
header,
footer,
.site-header-flex,
.site-container-main,
.site-nav-container-outer,
.site-nav-container-outer-flex,
.site-nav-container {
    width: 0px !important;
    min-width: 0px !important;
    max-width: 0px !important;
}

FOLLOW-UP QUESTION:

Instead of having to inspect the print and figure out what is affecting it, is there a way to just tell the @media Print to only use a specific style sheet instead of what is being used to render the page (or omit certain style sheets from the print that are being used to render the page)?

Reasons:
  • Blacklisted phrase (1): is there a way
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @media
  • User mentioned (0): @media
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: dDubs