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 trialGregory Seccomb
Front End Web Development Techdegree Student 1,854 Pointscant recognize an image in the img tag
So, for my unit one test i have to change the profile image and some other things. and when I go to change the photo of the background or profile image some of the photos wont display. I have it under the limit made the photos the same type of file(a .png or .jpg file). no matter what I do it will not display the photos I add to it. I can still display any photo added with the file in the first place.
1 Answer
Mark Sebeck
Treehouse Moderator 37,836 PointsAre your images in a different folder? If so you have to add the folder to the image name like
<img src="images/pic.jpg" >
or is your html page in a subfolder? If so you have to move back to the root directory with ".." first
<img src="../images/pic.jpg" >
Gregory Seccomb
Front End Web Development Techdegree Student 1,854 Pointsthe photos are in the image folder and my html isnt in a subfolder either.
Jason Anders
Treehouse Moderator 145,860 PointsJason Anders
Treehouse Moderator 145,860 PointsHi Gregory Seccomb
If you've double checked the file names and paths and neither of those are the issue, it's a bit difficult to further assist with troubleshooting without seeing the HTML / CSS files.
If you are using Treehouse's Workspaces, could you share a Snapshot of the workspace.
If you are using a local editor, you can copy/paste the lines using Markdown.
This will help us to better assist in the troubleshooting and hopefully be able to solve the issue.
:)