Calling background-image from css is referring to the wrong image path
dbajpeyi opened this issue · comments
Deepankar Bajpeyi commented
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.
Ahmet Can Solak commented
You may like to use this: background-image: url('../../assets/images/greedygamelogo.png');
official_dulin commented
same issue.
background: url(../../assets/images/icon-search.png) no-repeat #fff 1rem center;
Gaurav Kumar commented
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("/assets/images/greedygamelogo.png);