Do it like this:
<style type="text/css"> @import url("desktop.css"); @import url ("ipad.css"); </style>
Where desktop.css starts without any @media query rules and ipad.css starts with @media screen and (max-width: 768px) {/*your code here*/} .
Or just a link to both, as usual, with ipad.css below desktop.css.
<link rel="stylesheet" type="text/css" href="css/desktop.css"/> <link rel="stylesheet" type="text/css" href="css/ipad.css"/>
Where you also run the desktop.css file without any @media rules, and ipad.css starts with the @media screen and (max-width: 768px) {/*your code here*/} rule.
Thus, all desktop browsers will read the desktop.css file, and browsers that support multimedia requests will also read ipad.css (when the screen resolution is below 768 pixels).
If you use them as you describe in your editing, IE8 and below will be useless, this is well explained in this article => http://dev.opera.com/articles/view/safe-media-queries/
And if you want IE to also resize and understand your media queries, the only way to solve this problem is to use this lightweight JavaScript library => http://filamentgroup.com/lab/respondjs_fast_css3_media_queries_for_internet_explorer_6_8_and_more/ which will do the magic for you (and basically allows you to work with IE IE with a normal browser) :)
The problem is that you can only IE ignore media requests so that it does not spoil your sites. In order for IE to understand media queries and resize and understand changes in window size, you need help from the library that I mention.
Maverick
source share