how to know if portrait of landscape in css for mobile view code example
Example: detect portrait landscape css
@media screen and (orientation:portrait) { … }
@media screen and (orientation:landscape) { … }
@media screen and (orientation:portrait) { … }
@media screen and (orientation:landscape) { … }