Title: Default gallery width changes when activating plugin
Last modified: August 21, 2016

---

# Default gallery width changes when activating plugin

 *  [xhal44](https://wordpress.org/support/users/xhal44/)
 * (@xhal44)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/default-gallery-width-changes-when-activating-plugin/)
 * This is the best gallery plugin I’ve found, but I have a small but annoying issue
   that when I activate the plugin, my gallery is suddenly off-center on my page.
   Digging through the CSS, I found that that culprit is:
 * #gallery-0 .gallery-item {
    float: left; margin-top: 10px; text-align: center;
   width: 24%; }
 * When the plugin is disabled, the above code looks exactly the same, except the
   width is 25%, and the gallery centers properly on my page.
 * Edit: If I force 25% through custom css, the gallery aligns properly, but then
   I’m unable to choose less or more columns.
 * Any ideas what could be causing this?
 * [http://wordpress.org/plugins/simplest-gallery/](http://wordpress.org/plugins/simplest-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [cleoni](https://wordpress.org/support/users/cleoni/)
 * (@cleoni)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/default-gallery-width-changes-when-activating-plugin/#post-4433451)
 * Hi xhal,
    I’m sorry I landed on this question so late.
 * My suggestion is to plug in the LghtView addon style, which is now responsive
   and which can be easily adapted by tweaking the CSS:
 * [http://www.simplestgallery.com/add-ons/lightview-gallery-style-plugin/](http://www.simplestgallery.com/add-ons/lightview-gallery-style-plugin/)
 * let me know if you have somehow solved the problem, and if not just post a link
   to the add-looking page and I’ll try to suggest something

Viewing 1 replies (of 1 total)

The topic ‘Default gallery width changes when activating plugin’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplest-gallery_fcf1d1.svg)
 * [Simplest Gallery Plugin](https://wordpress.org/plugins/simplest-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/simplest-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/simplest-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplest-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplest-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [cleoni](https://wordpress.org/support/users/cleoni/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/default-gallery-width-changes-when-activating-plugin/#post-4433451)
 * Status: not resolved