In the Dasmoto’s Arts and Crafts project (https://www.codecademy.com/projects/practice/dasmoto) I used background-image but really struggled to get it to work, then finally did. Can you explain what I did wrong at first and why that didn’t work and then why my solution did work?
Firstly my index.css file is located (resources/css/index.css)
and my images are located (resources/images/…)
I started with:
background-image: url(/resources/images/pattern.jpeg);
After googling and trying a few different variants I ended up with this one that works:
background-image: url("../images/pattern.jpeg");
But I have no idea why that works or what the …/ means, if you could explain please.
Thank you for your time.