Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

images and my code ... something funny, help please!

Hi, thank you for reading this.

So here's my code:

<img src="baba/WebDesign/GAHM/GandMommiesLOGO.png" alt="Galileo And His Mommies Logo">

<img src="baba/WebDesign/GAHM/Geyes.jpg" alt="The Three Of Us" height="25%" width="25%">

My issue is that my images are not showing they were find one night then I stopped working and started again the next day but they images were not showing. I have tried everything I know and I can't get anywhere.

I do know the file paths are correct, or as best I can assess that.

Any ideas? I would so appreciate some help! Thanks in advance!

4 Answers

Perry Clark
Perry Clark
8,261 Points

Triple check your paths.

Also...

The pic size should be set with px not %

Change this

height="25%" width="25%"

to height="25px" width="25px"

and adjust size

James Barnett
James Barnett
39,199 Points

@Emily -

Like @Perry said, it's almost always an issue with your path. So here's a quick primer on file paths that should get you going.

Also depending on your web server, the directories & filename that makes up your path may be case-sensitive. So triple check the spelling and capitalization of the the path.

Let us know how you are getting along with this here in this thread.

Yay! Success!

James and Perry, thank you for reaching out. It was a file path issue. On mac's it is not a straight forward process but a researched a good work around. If anyone is interested....

http://www.macyourself.com/2011/12/31/copy-file-or-folder-path-to-the-clipboard-in-mac-os-x-lion/

Thanks again!

James Barnett
James Barnett
39,199 Points

@Emily - I love it when people solve their own problems. Rock on with your bad self. :guitar:

Although I think there's an easier way, by simply dragging a file into a terminal window.