0

I want to center an image with css while preserving it's aspect ratio & setting it's height to 100%.

when applying answers to similar questions the left property always sets to 0

  • Does this answer your question? [Maintain the aspect ratio of a div with CSS](https://stackoverflow.com/questions/1495407/maintain-the-aspect-ratio-of-a-div-with-css) – Tobias Geiselmann Nov 29 '21 at 08:44

0 Answers0