Remove blue border from printed link images in IE8

css, html, internet-explorer-8, printing

Solution

Big derp moment for me.

Using:

a img { border: 0; } 

in media="print" sheet worked perfectly.

Problem

I've already read through the similar questions on this topic, but none of them address the problem associated with printing. I have dynamically generated images that are links as well. Using the following CSS, I am able to prevent blue borders from displaying on the link images in Firefox and IE8. ``` a img { border: 0; } ``` However, when printing the page from IE8, the blue border persists. I can't find any options in IE8 to prevent this behavior, and I've already taken action via CSS. Does anyone know why this is happening and how to prevent the annoying blue borders from printing?

Original source