PDA

View Full Version : Printing images in I.E.


jwendel
08-01-2002, 05:33 PM
Ok, I don't want to print the images in I.E. I have the default settings enabled which do not print the backgrounds, but they print the images. Here is the situation-- I have a .gif that is the same color as the background color(blue corner .gif). The gif shows up and I don't want it to, but w/out touching the image settings.

Thanks for any suggestions
:rolleyes:

justame
08-01-2002, 05:39 PM
jwe...
just a thinking® here...
since you said your 'image' is your 'corner'???
umm can/could you just a code® your table so that thattt 'image' sits in its own td with it as the background...n' thennn use just a transparent® spacer gif the size of your 'corner image' n' thennn??? when the page just a prints®??? your 'transparent' gif shouldnt just a showup® ...welll it will 'cept cause its transparent??? it shouldnt just a show®

/me just a reminds® ya shes NOTTT programmed to think...lol...

Roy Sinclair
08-01-2002, 07:01 PM
<style type="text/css">
@media print
{
img.noPrint {display: none; }
}
</style>

Then for any image on your page you don't want to be printable you use: <img src=... class="noPrint" />

Zvona
08-01-2002, 10:00 PM
Originally posted by Roy Sinclair
<style type="text/css">
@media print
{
img.noPrint {display: none; }
}
</style>

Then for any image on your page you don't want to be printable you use: <img src=... class="noPrint" />

Note : do not use display:none;, use visibility:hidden;.
Reason : image reserves space when it's visibility is hidden. Therefore your layout won't fumble. If you hide image completely with display to none, objects adjacent to image will take its place.