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

CSS

helio goncalves
helio goncalves
5,240 Points

Why are the captions for the respective photos leaking out padding?

When adjusting the windows to mobile size as shown in the video, the captions underneath the photos should be adjusted to the padding. Rather, they are leaking out...

Any ideas why?

here is the screenshot of my code: https://w.trhou.se/6hd6r7n3uk

2 Answers

Steven Parker
Steven Parker
229,645 Points

I think you mean "snapshot", but that's the best way to share your code - thanks.

I'm not sure what you mean by "leaking out", but when I reduce the window size, the captions wrap just as expected.

Also, when I look through the CSS, I don't see any padding applied to the captions.

If I recall correctly, further along in the course you'll create some additional CSS specifically to adjust the appearance for mobile-size screens. Keep going and see if your issues get addressed there.

helio goncalves
helio goncalves
5,240 Points

it seems to me that the captions are overlapping the gray box (background-color) underneath the photos. In the video the captions are all inside.