CSS2 defines a media selector for different media types.
Incorporate as part of the "link" element:
<link rel="stylesheet" type="text/css" media="all" href="screen.css" />
<link rel="stylesheet" type="text/css" media="print" href="print.css" />
Or, use "@media" selector in style rule:
@media print {
body { font-size: 11pt; }
}
@media screen {
body { font-size: medium; }
}
@media print {
div.navigation {
display: none;
}
hr {
page-break-after: always;
}
}
Copyright © David Heitmeyer