How can I set a CSS file for print & screen?
I tried to set both values on the tag (like for a class attribute) but it doesn't work:
<link href="style.css" rel="stylesheet" media="screen print">
The question goes also for CSS in body.
You need a comma:
<link href="style.css" rel="stylesheet" media="screen, print">
The question goes also for CSS in body.
If you're referring to the style
attribute, this cannot be done because you can't embed media queries in inline styles.