1

I just complete my Google Homepage project from The Odin Project tutorial. I've uploaded my index.html & style.css file into GitHub, and follow the steps from The Odin Project to publish my web project from GitHub repository.

But my My GitHub repo Web project has failed to load the CSS file, while my web page in [codepen io][2] work completely fine and they both use the same coding.

Anyone can help me solve the problem? This is my GitHub Web project page.

Sorry if my English is poor and I'm a complete newbie to coding and GitHub.

3
  • this is the link "codepen.io/rogueape/full/abBYPdB" to my web page project at codepen io that works just fine. Commented Mar 1, 2021 at 16:18
  • There is no link to the CSS file? nimb.ws/mqrLRH Commented Mar 1, 2021 at 16:20
  • Codepen works because there is no need of linking in the editor. Commented Mar 1, 2021 at 16:21

2 Answers 2

1

Probably you forgot linking your css file.

<head>
    <link rel="stylesheet" href="style.css">
</head>
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your answer!! Much appreciated!! I'm new to coding and this <link rel="stylesheet" href="style.css"> is new to me, and now its help clear my mind and had solve my problem! Thanks buddy!!
0

You need to link your css file in your html in order to load the styles.

<head>
    <title>RogueApe's Google Homepage</title>
    <link rel="stylesheet" href="style.css">
</head>

1 Comment

Thanks for your answer!! Much appreciated!! I'm new to coding and this <link rel="stylesheet" href="style.css"> help me clear my mind and I've learn a new code! Thanks mate!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.