These are chat archives for MontCode/GeneralChat

21st
Nov 2016
I cant figure out why the image is not working
in my style guide
Lily Romano
@Lilyheart
Nov 21 2016 16:52
well on codepen it cannot access your local images so that's why it's not loading on codepen. @JBC944
Your code says .././final_project_folder/Logo/mc3-logo.jpg The problem is in the .././ part. Where is the file in relation to your html file?
../ means go up one folder in the folder tree. . means the current folder the html file is in. They really can't be used together like that to accomplish anything.
Well, I guess technically they can but the ./ one does nothing.
Lily Romano
@Lilyheart
Nov 21 2016 16:58
blob

Given this example, you start in html_lives_here. Lets break down the file reference.
The ../ says go up a folder in the folder tree. Now you are looking in parent_folder.
The ./ says stay whatever folder I'm in. You are still in parent_folder
The final_project_folder/ part means now to go into the final_project_folder folder.

I don't think this is the file structure you actually have however.

JBC944
@JBC944
Nov 21 2016 17:40
Screenshot_2.png
Lily Romano
@Lilyheart
Nov 21 2016 18:05
Your code says .././final_project_folder/Logo/mc3-logo.jpg The problem is in the .././ part. Where is the file in relation to your html file?
JBC944
@JBC944
Nov 21 2016 18:18
the html page is in the final project folder
Lily Romano
@Lilyheart
Nov 21 2016 18:18
where is the image file of the image that isn't showing up in relation to your html file?
the answer to that is the answer to what the path should look like.
JBC944
@JBC944
Nov 21 2016 18:19
its in the file called images in the final project file
Lily Romano
@Lilyheart
Nov 21 2016 18:43

Want to make sure you saw my last message @JBC944 as I think we sent them both at the same time xD

the answer to that is the answer to what the path should look like.

JBC944
@JBC944
Nov 21 2016 18:50
what should it look like
Lily Romano
@Lilyheart
Nov 21 2016 18:53
It looks like your book talks about file paths on pages 85-89.
JBC944
@JBC944
Nov 21 2016 18:54
okay thanks i will take a look at it
Lily Romano
@Lilyheart
Nov 21 2016 18:55
I promise I'm not trying to be difficult by not just giving you the answer. Understanding how file paths work is crucial , vital and very very important so if you are wanting to switch to a comp sci major, it's something you need to figure out and know <3
JBC944
@JBC944
Nov 21 2016 18:55
i understand
Lily Romano
@Lilyheart
Nov 21 2016 18:56
away from gitter for awhile! Talk to ya'll later.
JBC944
@JBC944
Nov 21 2016 18:57
at least i know which pages the book has it