Live site looks different than on my local host #109629
-
Select Topic AreaQuestion BodyHey guys, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey there! 👋🏼 I took a look at your repository and cloned it to see what might be causing the issue. It seemed to work fine when I accessed it locally, but then I noticed something in the index.html file. You've linked your CSS file like this:
But when I checked the CSS file itself, it's named Style.css. While HTML isn't picky about case, sometimes servers like GitHub Pages are. So, if the names don't match exactly, it can cause problems. To fix this, I'd suggest changing the CSS file name to Also, if you want to rename the file directly within your Git repository, you can use the Navigate to the directory where the CSS file is located in your terminal or command prompt.
This will rename the file from Style.css to style.css in your repository. Once you commit and push these changes, they'll be reflected on GitHub Pages as well. If you prefer to do it manually, you can simply rename the file in your file explorer or text editor, and then push the changes to your repository. Hope this helps clear things up! 🙌🏼 |
Beta Was this translation helpful? Give feedback.
Hey there! 👋🏼
I took a look at your repository and cloned it to see what might be causing the issue. It seemed to work fine when I accessed it locally, but then I noticed something in the index.html file.
You've linked your CSS file like this:
<link rel="stylesheet" type="text/css" href="./assets/css/style.css" />
But when I checked the CSS file itself, it's named Style.css. While HTML isn't picky about case, sometimes servers like GitHub Pages are. So, if the names don't match exactly, it can cause problems.
To fix this, I'd suggest changing the CSS file name to
style.css
to match what's in the HTML. That way, everything lines up perfectly.Also, if you want to rename the file directly w…