Working with MediaQueries for responsive layout, I came across the following problem: I am setting the resolutions quietly, but when I get to 800px
the setting gives 320px
and 360px
. It is completely ignored by the browser. What to do?
With 800px
:
No800px
:
/* Smartphone em modo retrato */
@media only screen and (max-width : 320px) {
.logo{
background-size: 81px 49px !important;
background-image:url(../images/logo.png);
background-position: 125px 1px;
width: 100%;
height: 100%;
}
}
@media only screen and (max-width : 360px) {
.logo{
background-size: 81px 49px;
background-image:url(../images/logo.png);
background-position: 145px 1px;
width: 100%;
height: 100%;
}
}
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
.logo{
background-size: 81px 49px;
background-image:url(../images/logo.png);
background-position: 345px 1px;
width: 100%;
height: 100%;
}
}
@media only screen and (max-width : 800px) {
.logo{
background-size: 81px 49px;
background-image:url(../images/logo.png);
background-position: 365px 1px;
width: 100%;
height: 100%;
}
}