This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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?