Hi, I’m designing a site and on one of the sections on a page I’ve used an image for the Background Lower Layer, using <img/> Element and it looks fine until you view it on a mobile and then the image is way too big! I’ve tried to use CSS to alter this, but nothing is working! I know how to use CSS to change the size of a ‘Background Image’, but I want to use <img/> Element as I can assign Alt Text to it.
With the Background Image I just change the background-size: with CSS for the media size required, but for the <img/> Element it uses object-fit: instead and I don’t know I need to do so I can change the size with a % if that’s possible!
This is all I’ve got so far, as nothing else I’ve done works!
@media (min-width: 0px) and (max-width: 480px) {
.home-page-valuation-header-image .x-bg .x-bg-layer-lower-img img {
I’d really appreciate any help you can give me!
I’ll put the URL in a secure note as it’s being built on a temp link, but here’s a screen grab of the image I’m referring to that’s on the Home page.
Thanks!
