Answer the question
In order to leave comments, you need to log in
Why MEDIA CSS doesn't detect phone resolution correctly?
Into this code:
@media all and (max-width: 720px) {
.apt-short-card {
border-top: 2px solid red !important;
}
}
@media all and (max-width: 566px) {
.apt-short-card {
border-top: 2px solid blue !important;
}
}
Answer the question
In order to leave comments, you need to log in
First, you didn't forget to put:
And secondly - https://mydevice.io/devices/
There is such a thing, in mobile phone browsers, the resolution does not match the phone screen resolution.
For example, in an iPad with a retina display, the resolution is 1024 by 768, you yourself understand that on the matrix it has 2048 × 1536
https://codepen.io/simkaUser/pen/YrZgWX?editors=1100 Everything seems to be displayed correctly...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question