orientation media feature

1 out of 1 rated this helpful - Rate this topic

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.

ValueDescription

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.