Question · HTML and CSS course · Module 5: Responsiveness
Device orientation in CSS
How do you check device orientation in a media query?
Answer options
- @media (rotate: 90deg)
- @media (direction: vertical) or (direction: horizontal)
- @orientation: mobile or desktop
- @media (orientation: portrait) or (orientation: landscape)
You can check the correct answer by solving this task in the CodeWorlds game.