css if portrait 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) { … }