I have looked at this post which gave a clear description on how to set only the parent background image's opacity without affecting the children elements: HTML/CSS text background transparent but text not
However, how do I set a background-image along with the opacity? Originally, I used opacity like this (but the children elements were affected too):
.content {
background-image: url('link/url/image.jpeg');
opacity: 0.35;
}
But after looking at the SO post linked above, I tried this:
.content {
background-image: url('link/url/image.jpeg');
background: rgba(255, 255, 255, 0.35);
}
But it seems like the background rgba() values aren't doing anything. I've also tried:
.content {
background: rgba(255, 255, 255, 0.35) url('link/url/image.jpeg');
}
But then the background isn't displayed.