views:

15

answers:

0

A page on my site has a link to a stylesheet for media="print".

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

Most browsers correctly ignore this link when rendering for a screen, but IE7 includes the file and processes the style rules, rendering the page inappropriately for a screen display.

How does IE (and how do other browsers) recognize what the intended display is? Is there an HTML header (or absence of) that guides them? Can this be correctly with Javascript?