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
Christian Solorzano
6,606 PointsLightbox not scaling image in gallery.
Hi everyone,
I'm using Lightbox (http://lokeshdhakar.com/projects/lightbox2/) to create a gallery for a website I'm designing for a client. I've used Lightbox in the past but I'm bumping into a bit of a problem.
Here's the page that is using the gallery: http://christiansolorzano.com/KY/gallery.html
Notice that when you click on the image, it opens up but the image isn't scaled within the frame.
Any help would be great.
Thanks
Peter Hatzer
20,837 PointsPeter Hatzer
20,837 PointsHi Christian,
I had a look at your code, you have set a margin of 1em on img tag in you style.css on line 316 this is causing your image to push out of its frame.
hope this helps.
Peter