+ 2

Can someone tell me why text colour will not change when the screen is reduced to under 450px?

h1{ Color: red; font-size:50px; } @media only screen and (max-width:450px){ h1{ color : blue; } }

3rd Sep 2020, 4:20 PM
ASHA NIKAM
ASHA NIKAM - avatar
3 Réponses
+ 3
increase your max-width to 550px to max if you want the front to be blue if that's not the case your h1 was already defined to red so you cant do nothing about it.
3rd Sep 2020, 4:30 PM
🙈Mantis🙈
🙈Mantis🙈 - avatar
+ 2
@media without space and color not colour
3rd Sep 2020, 4:23 PM
Rei
Rei - avatar
0
But why 550px not under 450px
3rd Sep 2020, 4:40 PM
ASHA NIKAM
ASHA NIKAM - avatar