Describes whether the orientation of the targeted display area of the output device is portrait or landscape.
Possible values
- Value:
portrait|landscape - Applies to: bitmap media types
- Accepts min/max prefixes: no
One of the following values.
| Value | Description |
|---|---|
|
portrait |
Indicates the height of the targeted display area is greater than or equal to its width. |
|
landscape |
Indicates the height of the targeted display area is less than its width. |
Examples
The following declarations demonstrate how to target displays that have an orientation of portrait and landscape, respectively.
@media all and (orientation:portrait) {
...
}
@media all and (orientation:landscape) {
...
}
Build date: 11/29/2012