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 How to Make a Website Creating HTML Content Structure the Image Gallery

How to get the images to stay in the box in workspace?

I drag the image to box the release the mouse and the images want stay. I have try to save the file and upload them but the same. I have been stuck on this step since last saturday.

1 Answer

Dominik Sikiric
Dominik Sikiric
2,059 Points

you should add image inside "box" or div with im src tag. Have you tried to do so? For example, if you want to add picture in your gallery box/div then it would be something like this

<div.class="gallery"><img src="url of the picture" /></div>

url of the image could be path to the image, so if your jpg image of headphone is inside "picture" folder then your path would be. "picture/headphone.jpg"