Montana-Media-Arts / 341-work

Resource repo and homework wiki for MART341-WebDev
https://montana-media-arts.github.io/mart341-webDev/
2 stars 2 forks source link

Images not showing up on git site #32

Open ghost opened 7 years ago

ghost commented 7 years ago

I have completed the homework assignment for the week, and pushed everything to git. All of the previews while I was working on the assignment were fine, but when I went to the actual live webpage for week 5, none of my images show up. Any advice?

michaelmusick commented 7 years ago

Try updating your URL's to the correct capitalization usage.

Your directory is labeled Images/ with a capital "I", however, your URL uses a lowercase "i".

shelbsjean commented 7 years ago

I had to move my image file around to turn it into a "child folder" so that my code could be read correctly and my images then showed up.

ghost commented 7 years ago

Thanks for the help! I changed the lowercase "i"s to capitals, and it appears to have worked

hyeink commented 7 years ago

image

My images don't show up in the webpage, even though preview is fine.

MediaArts-Montana commented 7 years ago

Hyein, you are using an absolute oath to the file. How is a web page suppose to grab a file from you local C drive (“C:\Users”) ?

Instead you should use relative paths. Remember that a single dot (.) means this directory, and two dots (..) means the parents directory.

So assuming the image is from an index.html located in your week-05-hw, you would need to say;

So the relative url would be

src="./images/twice.jpg"