I’ve been learning some SASS from Traversy Media’s course, and after a few months off coding have been getting stuck with this: I’m trying to put the showcase.png as my .landing’s background through a url, but I can’t seem to get the right path.
This is a screenshot witht the file explorer on the left
>Solution :
Given the directory structure:
/
├── css/
│ └── style.css
└── dist/
├── img
│ └── showcase.jpg
└── css
└── style.scss
The image path has to be relative to the built CSS file, not to the uncompiled SCSS file: so it should be ../dist/img/showcase.jpg.