Message from JavaScript discussions

July 2019

— I am kinda stuck here pls...


I am working with Node Express and inside the Public directory I placed my images folder... The structure looks like this:

|_ images
- mypix.png
- style.css

— Okay

— So the CSS file has a background-image:(...)

— What url will I pass inside that

— So I can get mypix.png visible across the page

— ../images/images/mypix.png

— Why this long?

— First you traverse out to the public folder then traverse in the images folder

— I thought since I created static express inside my app.js I shouldn't need long links

— You've put concentric folders

— Images has a images folder