Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

orientation

orientation is a CSS media feature that can be used to check what the orientation of the viewport is.

Enumerated values

Value Meaning
portrait  
landscape  

Specifications

Specification Status Comment
Media Queries
The definition of 'orientation' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?

 

Document Tags and Contributors

 Contributors to this page: mrenty, kscarfone, cvrebert
 Last updated by: mrenty,