What is the best location to put the images that I use in my custom css file? And what is the best way to get to the image from the css file?
The location of my custom css is:
app/design/frontend/theme/themename/web/css
I have Magento in developer mode.
Magento does something when deploying the files and I don't know if the location of css and image will change…
Regards,
Robert
Best Answer
You have to keep images in below path
So the full path for image demo.jpg will be
Your CSS file path for custom.css
Now you can use that demo.jpg image in the custom.css file as below
Now run the below commands