My css is working with atom editor


#1

i also link to css file but still does not work is there package i need to have . here my screenshot


so there any thing i can do fix my problem


#2

Yes, you just need to write the correct relative link. Look at index.html. It’s all by itself, but you’re telling the browser (Atom) to look inside my website/html/ for a folder called css/. The first part of that link needs to tell the browser to go up a folder, where css/ actually is. href="../css/main.css" will work.

Also, be careful starting a relative link with /. On Windows, a leading / doesn’t mean anything, but on Linux and OS X it means that you’re giving the program an absolute URI that starts from the file root (/). ./ will mean “look in this folder” on every platform.