How to import device width based CSS file?
To specifically call a stylesheet you need to use the link tag in your HTML, see the below
Try the below
<link rel="stylesheet" type="text/css" media="screen and (min-width: 701px) and (max-width: 900px)" href="css/medium.css" />
(OR)
<link rel="stylesheet" type="text/css" media="only screen and (max-device-width: 780px)" href="max-device-width-780px.css" />
Comments