-
How to update css when iPad orientation change
about 9 years ago
-
about 9 years ago
Thank you Babita
It is working fine :)
-
about 9 years ago
Hi Bhagwan
You need to change in media css as below :@media only screen and (min-width: 240px) and (max-width: 520px), only screen and (min-device-width: 240px) and (max-device-width: 520px) and (orientation:portrait) { body { background:#009; } } @media only screen and and (max-width: 610px), only screen and (max-device-width: 610px) and (orientation:landscape) { body { background:#993; } }
2 Answer(s)