views:

37

answers:

1

Hi, In jQuery FancyBox, I need to increase the width of the element #fancybox-wrap by 10 px. What is the easiest way to achieve this?

Thanks.

+1  A: 

if you are in jQuery 1.4

you could

$(document).ready() {
    $("#fancybox-wrap").width(function(i,width){
        return width + 10;
    });
});
Reigel