Linking a css file to a html file


#1

I'm trying to link a CSS file on atom to a HTML file on atom and it won't work. if anybody can help it would be highly appreciated.


#2

Are you asking for path autocompletion? Because “linking” just means providing the path to it, as far as I’m aware.

If so, there is an autocomplete-paths package.


#3

thanks, i'll try that


#4

You’re on Mac and using a path name that starts with /. That tells the browser to look at the root directory of your computer. If you want a relative path, you should start with . (the current folder) or .. (the folder above the current folder). For your specific case, you want to start with ...

And please, please use file extensions. You won’t have to manually tell Atom what grammar to use and everyone who looks at your code will thank you.