SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this:
img { width: 500px; height: 600px; object-fit: contain; position: relative; top: 50%; transform: translateY(-50%); }