O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

image-orientation

Values:

auto | <angle>

Initial value:

auto

Applies to:

Image elements

Inherited:

N/A

Computed value:

Same as declared value

Description:

Defines a clockwise rotation angle for images when displayed in paged media. The intent is to allow authors to rotate images that may have come from devices such as cell phones that do not automatically rotate images that are taken “sideways.” User agents are required to support angle values that compute to 0deg, 90deg, 180deg, and 270deg. Other angle values may be ignored. Note that the property is not needed to rotate images when switching from portrait to landscape layout or vice versa; such rotation should be done automatically by the user agent.

Examples:

img.oldphone {image-orientation: 90deg;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required