CSS image-orientation Property

❮ Previous Reference Next ❯

Example

.example1 {
  image-orientation: from-image;
}

.example2 {
  image-orientation: none;
}

Meaning:

The image-orientation CSS property specifies a layout-independent correction to the orientation of an image.

Default value:from-image
Inherited:Yes
Animatable:No
Version:CSS3
JavaScript syntax:
object.style.imageOrientation="none|from-image|initial|inherit|revert|revert-layer|unset";



Standard Syntax

image-orientation: none|from-image|initial|inherit|revert|revert-layer|unset;



Browser Support




Status







Property Values

The following table describes the values of this property:

Value Description
none Does not apply any additional image rotation; the image is oriented as encoded or as other CSS property values dictate.
from-image This is default value. The EXIF information contained in the image is used to rotate the image appropriately.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.



Default CSS Property Values

selectors {
  image-orientation: from-image;
}
❮ Previous Reference Next ❯