On the page with the text there is, say, a picture with an img tag, enclosed in a div block:

 <div style="position:absolute; left:16mm; top:8.6mm;"> <img src="http://www.iconsearch.ru/uploads/icons/crystalclear/128x128/button_ok.png" /> </div> 

How to NOT display it when printing, but to be displayed when viewed in IE 6-8

  • Try to make conditional comments for IE6-8. - Goldy
  • Everything, thanks, forgot a little: @media print {.unprintable {display: none;}} div class = "unprintable" - dante

2 answers 2

Try this:

  @media screen {
  div {
    display: block;  / Display item /
  }
 } 

@media print { div { display: none; / Hide content / } }

And styles can be loaded depending on the browser http://www.snippy.ru/snippet/85/

    You can take advantage of the fact that browsers allow you to load different css depending on the display mode (and printing is one of the modes) You can read for example here . But I don’t know if IE 6 supports all of this.