Rahul Raj
Rahul Raj

Reputation: 3459

Adding css style to window.print() without @media print

@media print is having issues with IE. And my application has to run with IE. I would like to know whether there is any way around to apply the style other than the known method with @media printer?

I have a huge list of styles to be applied when printing the page. The page to be printed is the current page loaded in tomcat web application.

Upvotes: 2

Views: 2779

Answers (1)

pavel
pavel

Reputation: 27092

Instead of media queries you can use new file for print styles.

<link rel="stylesheet" media="print" href="print.css">

It works fine in old browsers too.

Upvotes: 2

Related Questions