Forum Moderators: open
<link rel="stylesheet" type="text/css" href="hideStuff.css" media="print" />
In your css file make a class that hides elements, like this;
.hide4print{ display:none }
And then just assign that class to your player (or any other element you don't want to appear on paper).
<style type="text/css" media="print">
.noprint {display:none;}
img {display: none !important;}
a {text-decoration: none; color:000;}
</style>
I'm not sure whether this is equivalent to your suggestion Trace, but I tried placing <span class="noprint"> </span> around the ad player code. Unfortunately, the ad player still prints out.
<style type="text/css" media="print">
.noprint {display:none;}
#myinclude {display:none;}
img {display: none !important;}
a {text-decoration: none; color:000;}
</style>
The ad player still printed in IE7.
However, thanks to SuzyUK, the problem is now fixed.
In the generated source code (something I only learned about today), there were div ids, img ids and iframe ids. I mentioned the specific names of each in the print style sheet as follows
<style type="text/css" media="print">
.noprint {display:none;}
#ABDIV, #ABIMG {visibility: hidden !important; display: none !important; }
img {display: none !important;}
a {text-decoration: none; color:000;}
</style>
Now the player doesn't print in IE7, and it is no longer interacting with IE7's default "Shrink to Fit" and causing my pages to print with tiny font.