Title: Masonry Foo Gallery
Last modified: August 30, 2016

---

# Masonry Foo Gallery

 *  Resolved [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * (@nsajnani)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/)
 * Hey,
 * First of, I love Foo Gallery plugin, Its awesome!
 * Im using your plugin on my site [http://jdartsphotography.com/](http://jdartsphotography.com/)
 * using the masonry format.
 * However the height gap between each is very big.
    How do I edit that…
 * [https://wordpress.org/plugins/foogallery/](https://wordpress.org/plugins/foogallery/)

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

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785795)
 * Hi
 * You have a strange theme CSS rule being added to the page by a plugin it seems:
 * .blog .post img {
    padding-top: 40px; padding-bottom: 40px; }
 * Which is causing the gap you are seeing. Add the following custom CSS to your
   gallery to override that:
 * .foogallery-container img {
    padding: 0 !mportant; }
 *  Thread Starter [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * (@nsajnani)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785803)
 * Hey,
 * Where do i add this CSS code?
 *  Thread Starter [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * (@nsajnani)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785804)
 * I added the code to this
    foogallery/css/admin-foogallery.css
 * but still no difference.
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785828)
 * foogallery/css/admin-foogallery.css is the wrong place to add the custom CSS
   
   You need to add it on the edity foogallery page. There is a metabox for custom
   CSS
 *  Thread Starter [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * (@nsajnani)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785832)
 * Hey,
 * Thank you for your response.
 * I can’t find the metabox where is it?
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785833)
 * When you edit a Gallery, below the images and gallery settings, there is metabox
   for custom CSS
 *  Thread Starter [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * (@nsajnani)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785834)
 * Thank you so muchh!!!!

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

The topic ‘Masonry Foo Gallery’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [nsajnani](https://wordpress.org/support/users/nsajnani/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/masonry-foo-gallery/#post-6785834)
 * Status: resolved