Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]

Home Page:http://fountainjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calling background-image from css is referring to the wrong image path

dbajpeyi opened this issue · comments

background-image: url(assets/images/greedygamelogo.png);

This rule tries to find the image in http://localhost:3000/app/assets/images/greedygamelogo.png instead of http://localhost:3000/assets/images/greedygamelogo.png

Not sure how to use a background-image from within CSS.

You may like to use this: background-image: url('../../assets/images/greedygamelogo.png');

same issue.

background: url(../../assets/images/icon-search.png) no-repeat #fff 1rem center;

background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("/assets/images/greedygamelogo.png);