Skip to content
Discussion options

You must be logged in to vote

Make sure the URL matches the actual URL where the image is being served from, not the path to the image on your local machine. Usually the public directory is just served from root on your server, so my guess is the right path is just url(‘/image-of-banana.ping’) or maybe url(‘/public/img-of-banana.png’).

If you are going to ever use relative URLs (I would recommend against it), they should be relative to where the compiled CSS file lives, not relative to your template file.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@iqbalpa
Comment options

@mrdulin
Comment options

Answer selected by slackermorris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants