Hi, I would like to know how you can add multiple background images to an element but with different classes.
For example the css:
.classOne {
background-image: url(bgOne.png);
}
.classTwo {
background-image: url(bgTwo.png);
}
and the element:
<div class="classOne classTwo"></div>
The two images have transparent areas sow they overlay.
But with this css, the first background-image just gets replaced with the second.
And the following is not an option 'cause of the hugeness (a lot of classes can be combined) of my project:
.classOne.classTwo {
background-image: url(bgTwo.png), url(bgOne.png);
}
So I'm looking for some kind of workaround.
I know it's possible with Javascript but I want that to be my last resort.
Thanks in advance for any help(er)!