Reputation: 570
My code is:
<link rel="stylesheet" href="/theme.css">
<link rel="stylesheet" href="/theme_retina.css" media="only screen and (-webkit-min-device-pixel-ratio:2)">
And it works as expected, Retina devices use the retina CSS and non-retina use the normal CSS. But I would like a media addition to the non-retina link tag so that it will only be used for non-retina devices, and I have been looking and can't find anything.
Thanks.
Upvotes: 2
Views: 269
Reputation: 9253
Won't this work?
<link rel="stylesheet" href="/theme.css" media="only screen and (-webkit-max-device-pixel-ratio: 1)">
Upvotes: 1