Forum Moderators: not2easy
<link rel='stylesheet' media='only screen and (min-width: 801px)' href='css/high.css'>
<link rel='stylesheet' media='only screen and (min-width: 701px) and (max-width: 800px)' href='css/medium.css'>
<link rel='stylesheet' media='only screen and (min-width: 481px) and (max-width: 700px)' href='css/low.css'>
<link rel='stylesheet' media='only screen and (max-width: 480)' href='css/mobile.css'>
Why don't you throw in a generic "link rel='stylesheet'" that doesn't specify media? It seems safe to assume that your MSIE < 9 users will not be on mobiles, and will have a width of > 800px, so treat that as your default.
In any case, isn't the combined "max-width" and "min-width" overkill? Put the rules in the right order and only one should get loaded anyway. The more complicated you get, the more room there is for Unintended Consequences.
<link rel='stylesheet' media='only screen and (max-width: 480px)' href='css/mobile.css'>
<link rel='stylesheet' media='only screen and (max-width: 700px)' href='css/low.css'>
<link rel='stylesheet' media='only screen and (max-width: 800px)' href='css/medium.css'>
<link rel='stylesheet' href='css/high.css'>
.container { width: 975px }
@media (max-width:800px) {
.container { width: 775px }
}
@media (max-width:700px) {
.container { width: 675px }
}
@media (max-width:480px) {
.container { width: 375px }
}
// This
@media (max-width:480px) {
.container { width: 375px }
}
// or this
@media only screen and (max-width:480px) {
.container { width: 375px }
}
// or this
@media 'only screen and (max-width:480px)' {
.container { width: 375px }
}