--- title: image-orientation slug: Web/CSS/image-orientation tags: - CSS - CSS Bild - CSS Eigenschaft - Referenz translation_of: Web/CSS/image-orientation ---
Mit der CSS Eigenschaft image-orientation kann die Ausrichtung eines Bildes geändert werden.
Hinweis:
image-orientation nur auf Bilder auswirkt.{{cssinfo}}
image-orientation: 0deg; image-orientation: 6.4deg; /* Wird zu 0deg gerundet */ image-orientation: -90deg; /* Wie 270deg, der normalisiert berechnete Wert */ image-orientation: from-image; /* EXIF Daten des Bildes verwenden */ image-orientation: 90deg flip; /* Um 90deg rotieren und horizontal spiegeln */ image-orientation: flip; /* Horizontales Spiegeln ohne Drehung */ /* Globale Werte */ image-orientation: inherit; image-orientation: initial; image-orientation: unset;
from-image<angle>90deg (0.25turn) gerundet.flip0deg benutzt.<img src="arrow.png" alt="Pfeil" style="image-orientation: 180deg;">
| Spezifikation | Status | Kommentar |
|---|---|---|
| {{SpecName('CSS4 Images', '#image-orientation', 'image-orientation')}} | {{Spec2('CSS4 Images')}} | Die Schlüsselwörter from-image und flip wurden hinzugefügt. |
| {{SpecName('CSS3 Images', '#image-orientation', 'image-orientation')}} | {{Spec2('CSS3 Images')}} | Ursprüngliche Definition |
{{Compat("css.properties.image-orientation")}}