Experiencing a puzzling issue that seems to have a straightforward solution that I just can't see.
I am trying to switch the background to a background-image, but for some reason, the image is not displaying. The code provided below does not show the image:
#background {
background-image: transparent url('src/assets/images/splash.jpg') 0% 0% no-repeat padding-box;
background-size: contain;
opacity: 1;
On the other hand, the text below successfully displays the image.
#background {
background: transparent url('src/assets/images/splash.jpg') 0% 0% no-repeat padding-box;
background-size: contain;
opacity: 1;
What am I overlooking here...?
I'm aiming to switch it to background-image to easily incorporate a gradient effect into the background