Hiya,
I have both print and screen options for CSS. The print CSS file sets some aspects to hidden so they don’t get printed (header/footer, menu etc).
As part of this I have an expandable/collapsable search box (using javascript). Now when the page loads the default state for the search box is hidden (this is outside of javascript) and sure enough it doesn’t appear on print preview or the actual print.
However when I toggle the search box to become visible, the print CSS file seems to get ignored as it always prints out. I have to manually hide it again for it not to show on the print out.
Is this by design (i.e. current state overwrites print CSS file), a bug in CSS/JS or something i’m doing wrong?
Thanks