How do you access the folder img in an Ionic Project?

I am calling background images in my Ionic Project (tabsnew) which are located in the folder /tabsnew/www/img in my style.css (tabsnew/www/css/):

background: url("/tabsnew/www/img/blanc.gif");

When testing it in Chrome it works fine. However, on the phone the images are not found anymore?

How can I call, from the folder css these images such that it is compatible with my phone?

Have you tried using relative paths rather than absolute?

1 Like

Haha… that was easy! Thanks a lot. I am a developer for more than 3 months now, and have implemented quite a lot complex stuff, but I was not familiar with this :smile: