Tell me how to write the correct css media expression for the device 375x812 and 375x667 (Iphone 7). I need by default what would have the class .bl_counter {top: 270px;} But at the same time for the Iphone 7 should be .bl_counter {top: 330px;}
I try to write @media only screen and (max-width: 390px) { .bl_counter { top: 270px; } } @media only screen and (max-width: 390px) and (max-height: 670px){ /// Iphone 7 .bl_counter { top: 330px; } }
@media only screen and (max-width: 390px) { .bl_counter { top: 270px; } } @media only screen and (max-width: 390px) and (max-height: 670px){ /// Iphone 7 .bl_counter { top: 330px; } }
@media only screen and (max-width: 390px) { .bl_counter { top: 270px; } } @media only screen and (max-width: 390px) and (max-height: 670px){ /// Iphone 7 .bl_counter { top: 330px; } }
But it doesn't work right
* In @media only screen and (max-width: 390px) {I have many other styles}
.bl_counter {top: 270px;}
, write to the media request? - RavenTheX@media screen and (max-width: 390px) {.bl_counter {top: 270px;}}
@media screen and (max-width: 375px) {.bl_counter {top: 330px;}}
What is the problem? - RavenTheX 1:58 pm