Combining multiple css files with different media types

Aug 2, 2008 at 4:28 AM
Great library. 

Is it possible to combine different css files with different media types?  I have broken my css files into screen and print files to supplement my layout file for all media types.

<link rel="stylesheet" type="text/css" href="~/css/ajaxtoolkit.css" media="screen" /> 
<link rel="stylesheet" type="text/css" href="~/css/main.css" media="screen" />
<link rel="stylesheet" type="text/css" href="~/css/layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="~/css/print.css" media="print" />

As a fix, I duplicated my "layout.css" with a media type for "screen" and another for print.  Is this the best I can do or is there a better option.   Thanks for your feedback

Aug 4, 2008 at 1:37 PM
No, you will no be able to combine different media type.
I mean, physically it is possible, but than whitch media type will you use for your respond?
That's why the media attribute for. To separate the stylesheets for several different media types - by separate responds.
You can still use the MbCompression so minify/compress them, and improve your site performance.