why is it when I type up this code, the second media query overrides the first
@media screen and (min-width:660px){
body{
background:darkgreen;
}
}
@media screen and (min-width:480px){
body{
background:navy;
}
}
The background color only changes to navy.
But when the order is reversed:
@media screen and (min-width:480px){
body{
background:navy;
}
@media screen and (min-width:660px){
body{
background:darkgreen;
}
both media queries work with their respective widths.