Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Replacing images when printing

more options

@media print {

   #logo:after {
       content: url(print-logo.png);
   }

}

this code does not work. The image is not displayed in print preview.

@media print { #logo:after { content: url(print-logo.png); } } this code does not work. The image is not displayed in print preview.

All Replies (1)

more options

Does

  #logo:after {
      content: url(print-logo.png);
  }

work without the media directive in both screen and print views?