I'm trying to understand why my page is loading the wrong css file while I'm using my desktop PC.
Here's the code I have :
<link href="<?php echo base_url('assets/css/bootstrap.css')?>" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" href="<?php echo base_url('assets/css/rh-mobile.css')?>" />
<link rel="stylesheet" type="text/css" media="screen and (min-width: 481px) and (max-width: 767px)" href="<?php echo base_url('assets/css/rh-tablet.css')?>" />
<link rel="stylesheet" type="text/css" media="screen and (min-width: 768px) and (max-width: 3000px)" href="<?php echo base_url('assets/css/rh.css')?>" />
When I check Firefox's web console, i can see that I'm getting a bunch of error messages like:
[11:54:09.149] Error in parsing value for 'font-weight'. Declaration dropped. @ https://myserver/myapp/assets/css/rh-mobile.css:13
[11:54:09.150] Unknown property '-moz-border-radius'. Declaration dropped. @ https://myserver/myapp/assets/css/rh-mobile.css:22
[11:54:09.150] Error in parsing value for 'background-image'. Declaration dropped. @ https://myserver/myapp/assets/css/rh-mobile.css:74
[11:54:09.150] Unknown property '-moz-box-shadow'. Declaration dropped. @ https://myserver/myapp/assets/css/rh-mobile.css:170
I wasn't expecting it to attempt to use the mobile css. My screen resolution for my desktop is 1920 X 1200.
Can you tell me why the rh-mobile.css is being loaded / where I've gone wrong?
Thanks.
min-device-widthvsmin-width?