Yes, each browser is reading each CSS file, and so only the last will apply. Instead of this:
Code:
<link rel="stylesheet" type="text/css" href="css/1280.css">
<link rel="stylesheet" type="text/css" href="css/800.css">
<link rel="stylesheet" type="text/css" href="css/480.css">
you need something like this:
Code:
<link rel="stylesheet" type="text/css" href="css/1280.css" media="screen and (min-width:801px)">
<link rel="stylesheet" type="text/css" href="css/800.css" media="screen and (min-width: 481px) and (max-width:800px)">
<link rel="stylesheet" type="text/css" href="css/480.css" media="screen and (max-width:480px)">
That way, you tell browsers when to use each style sheet.
The only problem with this is that some older browsers (including IE8) may not load anything, so usually you'd set one of those sheets as the default, without any media rules. E.g.
Code:
<link rel="stylesheet" type="text/css" href="css/1280.css">
<link rel="stylesheet" type="text/css" href="css/800.css" media="screen and (min-width: 481px) and (max-width:800px)">
<link rel="stylesheet" type="text/css" href="css/480.css" media="screen and (max-width:480px)">
Bookmarks