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

JavaScript jQuery Basics (2014) Creating a Simple Lightbox Perform: Part 1

Learning coding
seal-mask
.a{fill-rule:evenodd;}techdegree
Learning coding
Front End Web Development Techdegree Student 9,937 Points

Solution: Create an overlay with the large image?

The problem and solution is what I understand. The goal is te prevent a dead end after clicking on an image.

Then why create an overlay, what is an overlay in this context?

Create an overlay with an larger image? Why is that, the image is allready there, we just want to prevent that you can click on it and have to click back, in order to keep the site user friendly.

Thanks in advance!

Taylor Espejo
Taylor Espejo
3,939 Points

Hi,

I obviously has very little context into what you're doing but what you've said makes sense. Im not quite sure what you're asking about the overlay ? Why have it ? As you said to prevent / cover the default behaviour ? Is it coloured ? Perhaps the overlay is for UX purposes ?