Images not uploading to pug file from external css


node js:-


I have linked my CSS file to my pug/jade file. the server is running and overall CSS is executing except images

The most likely problem is that the image path hasn’t been set correctly. You can experiment by entering the image path in the url like so: localhost:8080/images/search.png . Once you’ve figured out the correct path to the images you can update the CSS. The images path isn’t relative to the CSS file. It’s relative to the project root where you’re serving / from.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.