Orientation query

noun

say it: “or-ee-en-TAY-shun KWEER-ee” /ˌɔriɛnˈteɪʃən ˈkwɪri/

A media query that checks whether the screen is taller than it is wide (portrait) or wider than it is tall (landscape).

What does the orientation media feature do?

orientation checks whether the screen is taller than wide (portrait) or wider than tall (landscape).

@media (orientation: landscape) {
  .video-player { height: 100vh; }
}

In a sentence

  • “An orientation query moves the photo beside the opening hours when someone turns their phone sideways.”

Level: Journeyman · More CSS terms at this level

Updated