Sometimes, we want to fix img tag displays in the wrong orientation with CSS.
In this article, we’ll look at how to fix img tag displays in the wrong orientation with CSS.
How to fix img tag displays in the wrong orientation with CSS?
To fix img tag displays in the wrong orientation with CSS, we set the image-orientation
property.
For instance, we write
img {
image-orientation: from-image;
}
to add the image-orientation: from-image;
to correct the img element orientation.
Conclusion
To fix img tag displays in the wrong orientation with CSS, we set the image-orientation
property.