Here's the css code:
@media (max-width:600) {
body{
background-color:red;
}
}
p{
color:blue;
}
The problem is that the @media part doesn't work at all. I tested it on 3 devices (including PC) and tried to change my browser's window size. However, when I change (max-width:600)
on screen
, the whole thing works. What could be wrong? In addition, adding media='max-width:600'
to <link>
tag causes css to crash (the entire css doesn't work at all in this case) – what is this??
P.S.: the code above and adding media='....'
works within codecademy.com codebit, but doesn't work on my site, where I test the whole thing. (http://peoples.pw)