Public>images>img-2.jpg src>components>pages>Services.js> src>>App.css> src>App.js> This is how I wrote the code. But the picture not working. Screenshot(Failed to compile) Images are not displayed, how can I display images? Please help me. Answer You shouldn’t keep your images in the public folder. When using css inside the src folder you should use the relative path to the image file and during
Tag: background
Firebase and JavaScript: Update fetched data on website from real time database without reloading website [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I want to deploy a website to Firebase. The website has to fetch data from the firebase database. If the values from the database has
How to set the value of a background Image in Vue using a URL generated by an API
I am trying to set the value of the background image of my #app element in Vue to the response that is generated from Unsplash’s API. I am able to retrieve the image URL, but I am having some difficulty in trying to relay that information to the background style element. Overall, my goal is to use a random image