screen orientation media query code example
Example 1: screen rotation in css
@media screen and (orientation:portrait) { … }
@media screen and (orientation:landscape) { … }
Example 2: mediaquery for portrate
@media (orientation: portrait) {
body {
flex-direction: column;
}
}