<link rel="stylesheet" href="styles_screen.css" />
<link rel="stylesheet" media="print" href="styles_print.css" />
<link rel="stylesheet" media="print" href="styles_print.css" />
However I found out today that you can actually just use one CSS file, and separate your media usage with the special @media selector. Simply enclose style definitions by media type, as in this simplified example:
h1
{
font-family: Verdana;
}
@media print
{
h1
{
font-family: Times;
}
}
{
font-family: Verdana;
}
@media print
{
h1
{
font-family: Times;
}
}
Nothing revolutionary, but cool to know you can save a separate HTTP file request by combining all your CSS into one file.
That's really helpful! Thanks, Ricky!
ReplyDelete