moey
moey

Reputation: 10887

css: Print Media Target

If I don't specifically specify media="print" in the CSS reference e.g.

<link rel="stylesheet" type="text/css" href="/css/print.css" />

will print.css apply its styles when I print the page (from the browser: File > Print...)?

And, if I only specify media="print" without screen, will the styles apply when the page is viewed on the screen?

Upvotes: 0

Views: 718

Answers (1)

Curtis
Curtis

Reputation: 103348

Without a media attribute in your link, the CSS isn't limited to a particular media type, and therefore would be used for both screen and print.

Upvotes: 1

Related Questions