Change it to
<link rel="stylesheet" href="../../styles/all.css" type="text/css" />
Explanation : If you go only one folder back from your header.ejs
file, you are in the folder views
. There is no styles
folder stored there. So you need to go one more folder back.
I think you need to use
<link rel="stylesheet" href="../../styles/all.css" type="text/css" />
to go up to the personal_website directory before going to /style/all.css
Hope this helps :)
<link rel="stylesheet" href="../../styles/all.css" type="text/css" />
That should work.
By "below" and "above", I mean subdirectories and parent directories. Relative file paths give us a way to travel in both directions. Take a look at my primitive example:
Here is all you need to know about relative file paths:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.