background-image : url();

2
Hi guys, Anyone know how to fill the background image? I have try use the background-image css, retrieved from project directory resources folder and still did not get the solution. I want add image to the blue background. Anyone has idea?
asked
2 answers
3

Hi Ikhwan

 

Try placing a ‘img’ folder in your ‘{projectname}/theme/web folder like this:

Add the picture to the img folder and use this css code:

 

background-image: url('img/{yourPicture}.png');

It worked for me, I hope it does for you.

answered
0

Thanks! it also works for me.

answered