Title: Code to remove border/padding from lightbox?
Last modified: August 31, 2016

---

# Code to remove border/padding from lightbox?

 *  [NextGen_User_SH](https://wordpress.org/support/users/nextgen_user_sh/)
 * (@nextgen_user_sh)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/code-to-remove-borderpadding-from-lightbox/)
 * What’s the code to remove border/padding from lightbox? I already removed from
   thumbnails with this:
 * .ngg-gallery-thumbnail img {
    background-color:transparent!important; border:
   none!important; padding: 0px; }
 * but once clicking on any image, the lightbox pops up and the white ugly padding
   surrounding the image is still there!
    Thanks for enlighting me. Rgds.
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/code-to-remove-borderpadding-from-lightbox/#post-6903258)
 * [@nextgen_user_sh](https://wordpress.org/support/users/nextgen_user_sh/) – We
   bundle the Lightbox libraries with NextGEN Gallery as a convenience, have you
   tried any of the other Lightbox Effects to see if they suit your tastes better?
 * – Cais.
 *  Thread Starter [NextGen_User_SH](https://wordpress.org/support/users/nextgen_user_sh/)
 * (@nextgen_user_sh)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/code-to-remove-borderpadding-from-lightbox/#post-6903313)
 * Sorry I am in Shanghai. Time difference caused delay in my answer. Thank you 
   for your reply.
 * My website address: //thparch.com
    Issue is in menu “media” where I inserted 
   the nextgen_gallery.
 * Actually, to answer your question, I just want the image that pops up after clicking
   its thumbnail to be frame-free.
 * In my webroot, there are 2 files:
    1: plugins/nextgengallery/products/photocrati_nextgen/
   modules/lightbox/static/shutter
 * 2:
    plugins/nextgengallery/products/photocrati_nextgen/modules/lightbox/static/
   shutter_reloaded
 * When editing shutter_reloaded/shutter.css the only parameter with white color(#
   ffffff), as in my online lightbox frame, is this:
 * #shDisplay div#shTitle {
    font: normal 12px/17px ‘Lucida Grande’, Verdana, sans-
   serif; /* caption font */ color: #ffffff; /* caption colour */ text-align: center;
   margin: 0 auto; }
 * When changing ffffff to 000000, for ex, the lightbox is still white.
 * When editing shutter_reloaded/shutter.css and changing parameters in:
 * div#shDisplay img#shTopImg {
    margin: 0 auto; border: 1px solid #555; background:
   transparent; display: block; max-width: none; max-height: none; }
 * nothing changes either.
 * When editing shutter_reloaded/shutter.js, there are several parameters at paragraph“
   ShowImg : function() ” showing width and heights related parameters. Should I
   modify here?
 * Could you pls indicate which root file controls that (lightbox.js?) and what 
   is the proper terminology? Code to edit and change?
 * Thank you in advance.
    Rgds
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/code-to-remove-borderpadding-from-lightbox/#post-6903325)
 * [@nextgen_user_sh](https://wordpress.org/support/users/nextgen_user_sh/) – As
   I noted, we only bundle those Lightbox libraries as a convenience. If you want
   to modify them then it would be best for you to review the libraries documentation
   and make sure you keep back-ups of your changes as they will be over-written 
   with the next update to NextGEN Gallery.
 * Thanks!
 * – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code to remove border/padding from lightbox?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)
 * [padding](https://wordpress.org/support/topic-tag/padding/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 3 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/code-to-remove-borderpadding-from-lightbox/#post-6903325)
 * Status: not a support question