Background image doesn't show when defined in stylesheet

It looks like your CSS file is in the views/default/ folder, while the image is in the views/default/images/ folder.

Define image paths in your CSS relative to the CSS file, not the HTML file that displays everything:


In my case:

I had a CSS folder. So, inside my CSS folder I had my style.css so I was typing inside my style.css the following:

background: url('img/mybgimg.jpg')

instead of

background: url('../img/mybgimg.jpg')

...I hope this can help to anyone who is having the same issue.