The problem is that all these images are a single sprite (trying to save resources here) so I can’t figure out a way to do it.
I tried to achieve this using both background-image and img tag, I don’t seem to get it to work.
The sprite is 722px x 400px and the banner images are 361px x 80px.
The banner anchors are 418px wide and 80px high. They need to grow height to 92.63px in order to keep the ratio of a wider image. Applied height will be 93px.
To extend the images to 100% the sprite needs to grow to 836px (418+418) x 463px (5 x 92.63px)
Then the background positions need to adjust to the 418px x 92.63px image sizes.
Hey @Erik_J thanks for the response, it indeed works!
But there is a small annoying issue that I noticed after the change (dunno if directly related), when reloading the page all the hover images appear to the right of the banners for like few milliseconds, then disappear again.
Hard to capture a screenshot of it but you should be able to see it after reloading the page, any ideas?
It’s awkward to debug the site when it demands Javascript to even load. I don’t like to enable Javascript just to get a view of what I’ve landed on. Those sites doesn’t get my trust.
Rather than blaming the css I would guess the issue has to do with some script messing with the loading.