From the course: jQuery for Web Designers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Change gallery options

Change gallery options - jQuery Tutorial

From the course: jQuery for Web Designers

Start my 1-month free trial

Change gallery options

- [Voiceover] Not to sound like a broken record, but I quite like Colorbox. And it has a lot of options and in this movie, we're going to take a look at some of them that you can use to customize its behavior. So the first thing we're going to look at is what happens when this Colorbox is open and the window is a little smaller. So I'll shrink this down. And it looks fine, but maybe I'd like a little more white space around the edges. So let's take a look at the available options on the Colorbox page and see what we have. So of course there's a lot here and it might help to just search the page. So I'm gonna type command F or control F on a Windows and just search for width to see if I can constrain the width of the Colorbox a little bit. The first thing that comes up is this scalePhotos property, which is defaulting to true. So if one of these has been defined, Colorbox will make sure to scale the photos to fit those values. That's not what I'm looking for at the moment. So let's…

Contents