[Plugin: NextGEN Gallery] Galleryview will not center in page
-
I needed to get rid of the native ability of the galleryview plugin to resize images to fit in the panel. It was making them larger than they were and cutting off the border I had given the images.
This all went fine, but after I had done it the gallery was no longer centered.
// If panel images have to be scaled to fit within frame, do so and position them accordingly if(scale_panel_images) { $('img',j_panels).each(function(i){ $(this).css({ // 'height':panel_img_scale[i%item_count]*img_h[i%item_count], // 'width':panel_img_scale[i%item_count]*img_w[i%item_count], 'position':'relative', 'top':(opts.panel_height-(panel_img_scale[i%item_count]*img_h[i%item_count]))/2+'px', 'left':(opts.panel_width-(panel_img_scale[i%item_count]*img_w[i%item_count]))/2+'px' }); }); }
This is the code I messed with. All I did was comment out the width and hight code. Now I cannot get the darn thing to center no matter what I do here, in the css of the plugin, or in site theme css. I tried putting the code back the way it was, and it still would not center. Help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: NextGEN Gallery] Galleryview will not center in page’ is closed to new replies.