Images not showing when i Publish on Github #23896
-
Hello Everyone! I am having issues publishing on github. All my images are not showing after I publish, meanwhile they are displaying correctly on my local computer. I don’t know what’s cuasing this. Side note; this is my first try on a project using HTML and CSS, I am eager to share with others for review. The Link to the project is:
GitHub - OluwaseunHenry/Order-Summary-Frontend-MentorContribute to OluwaseunHenry/Order-Summary-Frontend-Mentor development by creating an account on GitHub. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
hello there, you forget to include the folder path name say for example, one of your image is this, so change all of your images path to: |
Beta Was this translation helpful? Give feedback.
-
Either the above, or better use relative paths, not absolute ones. For example, change
OluwaseunHenry/Order-Summary-Frontend-Mentor/blob/bbe5c7c464707bda19676a04b1428358f2442035/index.html#L36 to:
Note the lack of starting slash. That way the browser will use that path relative to the directory the current page is in. |
Beta Was this translation helpful? Give feedback.
hello there,
you forget to include the folder path name
Order-Summary-Frontend-Mentor
,say for example, one of your image is this,
so change all of your images path to:
https://oluwaseunhenry.github.io/Order-Summary-Frontend-Mentor/images/[name-of-the-image]