HTML and CSS Reference
In-Depth Information
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 notneeded 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;}
Search WWH ::




Custom Search