I'm having trouble with inserting a full-width hero image. The issue arises on mobile devices where the height of the image appears too short based on its original proportions.
On large screens:
https://i.sstatic.net/U1tXC.jpg
On mobile screens:
https://i.sstatic.net/3ytPG.jpg
My goal is to have a slightly larger height than what is currently calculated for the mobile screen size. I thought about applying a min-height property to the image to achieve this.
Therefore, I added the following CSS:
img {
min-height: 300px;
}
However, I know this is not the correct approach.
https://i.sstatic.net/8xA22.jpg
Any suggestions on how to fix this issue?