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,