CSS styling not visible on GitHub pages #114560
Unanswered
KaranPhagurah
asked this question in
New to GitHub
Replies: 1 comment
-
@KaranPhagurah , I forked your project and tested it on GitHub Pages. It looks like you've already fixed the path for your However, there's an issue with your image path: <img class="mountain-img" src="/Images/mountain.jpg" alt="mountain"> To fix this, simply adjust the path like so: <img class="mountain-img" src="./Images/mountain.jpg" alt="mountain"> This change should ensure your image loads correctly on GitHub Pages. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am trying to practice CSS and made a little website for that. I have been writing the HTML and CSS code in the codespace provided by GitHub and then committing the changes. In the live server, I can see my CSS code working just fine but when i publish it using GitHub pages, HTML is working but CSS is not being applied.
I have tried to look for solutions online and even on the GitHub discussion pages, but I think I might be missing something out as I am not able to figure what is wrong with it.
https://github.com/KaranPhagurah/Poster_Website
Thank you in advance for your inputs.
Karan
Live server screenshot
Published site screenshot
Beta Was this translation helpful? Give feedback.
All reactions