Hi there.
I just watched a Lynda tutorial that said I should use my desktop.css style as a fallback for browsers that can't read media queries. For this reason, my links look like this:
But as I check the page on an iPhone emulator, I can see that it's quickly loading the background specified from desktop.css (and probably everything else) before it hits the media query and runs mobile.css. Should I just put the desktop.css after the media queries? If I do that, it will override the whole tablet and mobile design, won't it?
What is best practice for how to handle this? Thanks very much in advance. This is my first responsive site for a client. Regards,
Bill
I just watched a Lynda tutorial that said I should use my desktop.css style as a fallback for browsers that can't read media queries. For this reason, my links look like this:
HTML:
<link href="css/desktop.css" type="text/css" rel="stylesheet"/>
<link href="css/tablet.css" type="text/css" media="screen and (min-width:481px) and (max-width: 768px)" rel="stylesheet"/>
<link href="css/mobile.css" type="text/css" media="screen and (max-width: 480px)" rel="stylesheet"/>
But as I check the page on an iPhone emulator, I can see that it's quickly loading the background specified from desktop.css (and probably everything else) before it hits the media query and runs mobile.css. Should I just put the desktop.css after the media queries? If I do that, it will override the whole tablet and mobile design, won't it?
What is best practice for how to handle this? Thanks very much in advance. This is my first responsive site for a client. Regards,
Bill