Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbajpeyi opened this issue Jun 28, 2016 · 3 comments
Open

Comments

@dbajpeyi
Copy link

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.

@AhmetCanSolak
Copy link

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

@mrdulin
Copy link

mrdulin commented Aug 11, 2017

same issue.

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

@gauravsahu21
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants