PrettyPhoto: make popup bigger than default

How can I set the size of the popup window to be larger than usual?

http://d.pr/Md3E+

Too much space at the top and bottom of the description.

+3
source share
1 answer

You can pass width and height as parameters. Therefore, your constructor might look like this:

$("a[rel^='prettyPhoto']").prettyPhoto({
    default_width: 500,
    default_height: 344
});

You can see the full list of options here.

+2
source

All Articles