CSS - orientation

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

Description  

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

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 ? ? ? ? ?

 

Specifications  

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

 

Value Meaning
portrait  
landscape  

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/@media/orientation

CSS NeedsBrowserCompatibility NeedsExample Reference Référence