<link rel="stylesheet" media="(max-width: 400px)" href="blue.css" /> <link rel="stylesheet" media="(min-width: 400px) and (max-width: 800px)" href="red.css" /> <link rel="stylesheet" media="(min-width: 800px)" href="green.css" />