Skip to content

Live site looks different than on my local host #109629

Answered by NipulM
lelisiario asked this question in Pages
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@lelisiario
Comment options

@NipulM
Comment options

@lelisiario
Comment options

@NipulM
Comment options

@lelisiario
Comment options

Answer selected by lelisiario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question Ask and answer questions about GitHub features and usage
2 participants