In my code, I have styled the style.css file for mobile devices. The code works perfectly for mobile portrait size, but when I rotate the device to landscape mode, it calls the default CSS. How can I resolve this issue?
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
}
In addition to this, the code includes:
@media (min-width: 481px) {}
This is targeting all sizes like tablets, PCs, etc.
I tested this in the web developer tools in Google Chrome.