Background Image

0
Hi,   I’m trying to add an image as a background to a container but it’s not working. Can anyone assist?   Below is the Class that I made.   .background { background-image: url(img/MyFirstModule${CollectionName}${Photo}.png)no-repeat; overflow:hidden; }
asked
2 answers
0

It should be like below:

 

.background {

background-image: url(/img/MyFirstModule${CollectionName}${Photo}.png)no-repeat;

overflow:hidden;

}

 

Notice the / in front of the img

answered
0

background-image: url(imagefileurl.png);

apply in appearance style box

answered