I have the following media query:
@media screen and (max-width: 480px) {
When viewing a website in portrait mode on my Nexus 5, it looks the way I want. However, when I put the phone in landscape mode, it shows the full site, and not the one indicated in this media request.
Why is this happening? I also tried:
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
This did not solve the problem.
source
share