marinatuveson / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

File Paths #1

Open hmontero1205 opened 6 years ago

hmontero1205 commented 6 years ago

Your CSS did not load because the path you provided: href="/Users/marynatuveson/Documents/CodeAcademy/Dasmotos Arts & Crafts/style.css" is incorrect. While this may work on your machine, this does not work on mine because I do not have this directory structure.

The proper way to reference files in projects (and in general really) is to use relative paths. That is, give the path to the file relative to the current working directory. In this case, index.html and style.css are in the same directory, so the path from index.html to style.css would simply be this: href="style.css"

marinatuveson commented 6 years ago

thanks for your comment, I have been really struggling with linking both files, thats why I used the full path. I checked million times and it just didn't work...I didnt use "href=style.css", I tried something else, but eventually I made it work with the full path. I will keep it in mind for the future. thanks for your feedback again