Skip to content

Broken images #21960

Discussion options

You must be logged in to vote

Hi @eatcodesforlife,

It looks like the issue is the two dots plus the slash "…/"at the beginning of your images’ src attributes. This is basically a reference to a folder up one directory from /portfolio/ – it refers to the root of your github pages (https://eatcodesforlife.github.io/) in this case. Since projects.html is in the same directory as /img, you can refer to it like this :

src="img/flexbox.jpg"

 I’m not sure what the result would be on your live server, but you can open the devtools and hover the src to see where it’s getting the images from, like in the example above, if there’s any issues on your end.

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet