[jifty-devel] Multiple css links for different media

Thomas Sibley trs at bestpractical.com
Thu Dec 14 20:58:08 EST 2006

Alex Vandiver wrote:
> On Thu, 2006-12-14 at 16:51 -0500, Henry Baragar wrote:
>>> There is also, I recall, a way to do this from within the sheet
>>> itself. Is that right?
>> Not that I know of, but I am not a CSS expert.
> Use the @media rule:
> @media print {
>   .somecss { color: red }
> }

Even better (to keep the file separate), use an @import rule with the
media qualified:

@import "app-print.css" print;

Put that as the first line in app.css (and it should Just Work).


More information about the jifty-devel mailing list