It's really strange from where I'm standing.
I'm working on a website and trying to set up a banner with a background image using the background-image
property.
The issue I'm facing is: when I use two images with the same dimensions, it doesn't work if I load them from my own domain, but it works perfectly fine from an external domain.
MY DILEMMA:
Here is the banner I have on my page:
https://i.sstatic.net/0Qqo9.png
The background image is set like this:
https://i.sstatic.net/AkMK5.png
Now, here's the weird part - the image actually displays on this URL, but on my site, instead of the image, I get a black background:
https://i.sstatic.net/68x21.jpg
However, if I use a different image from a third-party URL that has the exact same dimensions:
https://i.sstatic.net/H9zJr.png
And then replace it in the CSS like so:
https://i.sstatic.net/dPrty.png
Everything works perfectly and the background shows up!
So, my question is: What could be causing this strange behavior? I might be losing my mind, but I need your expertise to help me figure out what's going wrong.