I seem to be experiencing some difficulties with this. To provide some background, I am currently working on a basic stat tracking website and the .body-bg-image
pertains to my homepage.
Instead of a solid color, I was aiming for a gradient background, so I made an attempt which resulted in the following issue - although the gradient appears, the image no longer shows up.
.body-bg-image {
background: linear-gradient(
to top,
rgba(196, 145, 2, 1) 0%,
rgba(149, 48, 54, 1) 87%
)
fixed,
/* this image doesn't show,
it works if I have the background as a color but not as a gradient */
url("./assets/apexrevanant.png") top center no-repeat;
}
Previously, it was functioning fine when it was set up like this with a solid primary color and the image:
.body-bg-image {
background: var(--primary-color) url("./assets/apexrevanant.png") top center no-repeat;
}