I'm developing this website and I am facing a problem with background images. While I was googling, I learned I could do this:
.tinted-image {
background:
linear-gradient(rgba(255, 0, 0, 0.45)),
url(image.jpg);
}
but somehow I can't do this:
.tinted-image { //Defining color and image differently
background:
linear-gradient(rgba(255, 0, 0, 0.45)),
background:
url(image.jpg);
}
Because of my program, I can't use the first code, and I have to define the background-color and the image differently (hovering and stuff). Is there any way to do it the second way? Or could I achieve this with Javascript?