We help IT Professionals succeed at work.
Get Started

CSS not picked up when printing from IE6

PaulMRogers
PaulMRogers asked
on
493 Views
Last Modified: 2013-12-08
I've an issue that I can't seem to find any information on despite having googled for a while. The jsp pages on our site displays fine in a variety of browsers including IE6. When I try to print from IE6 however all formatting is lost. The pages print fine from Firefox, Safari etc but not IE6. The odd thing is that if I save one the pages locally as html, then open it up in IE6 and print out, it outputs the page to the printer with the correct CSS. It appears as though the CSS is not being picked up at all when we print from IE6. Our CSS files are declared thus:

<link rel="stylesheet" media="all" type="text/css" href="main.css" />
<link rel="stylesheet" media="all" type="text/css" href="apps.css" />
<!--[if gte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="ie6.css" />
<![endif]-->
<link rel="stylesheet" media="print" type="text/css" href="print.css" />

The print.css file overrides some styles in main.css so that it prints ok (at least on browsers other than IE6). It renders fine in all browser windows so I'm at a loss as to why it wouldn't print ok.

Does anyone have any experience of this or know what the cause/solution may be? Thanks in advance for your help.
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE