I know there are many people asked this question but I debugged for an hour and still stuck here... The file structure in my github repo is
--root
index.html
resume.css
--folder assets
resume.css
(yes I made two identical css file just in case one of them works but none of them works...) I tried to reference css file as
<link rel="stylesheet" type="text/css" href="resume.css" media="all" />
or
<link rel="stylesheet" type="text/css" href="assets/resume.css" media="all" />
But again none of them works.. When I download the entire github repo as a .zip file on my computer and unzipp it, the website can display normally. Is it something else I could do?
CodePudding user response:
Can you check where you placed the <link>
tag?
It should be inside the <head>
tag
CodePudding user response:
<head>
.
.
.
<link rel="stylesheet" type="text/css" href="resume.css" media="all" />
or
<link rel="stylesheet" type="text/css" href="assets/resume.css" media="all" />
.
.
.
</head>