Title: Gallery
Last modified: November 4, 2022

---

# Gallery

 *  Resolved [hazy23](https://wordpress.org/support/users/hazy23/)
 * (@hazy23)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/gallery-143/)
 * Hi,
 * I would like to create a gallery with landscape and portrait oriented images.
   When I’m doing this I will get gaps because the images are in different orientation.
   Is there a way to fill the gaps?
 * Can someone please help me out with this issue?
 * Many thanks,
    Hazel
    -  This topic was modified 3 years, 6 months ago by [hazy23](https://wordpress.org/support/users/hazy23/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgallery-143%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/gallery-143/#post-16171695)
 * Hello [@hazy23](https://wordpress.org/support/users/hazy23/),
 * Please check the gallery widget settings.
    If all padding is set to “0” and the
   issue persists, it could be a cache issue(from LiteSpeed), please check this 
   screenshot: [https://i.postimg.cc/fRZhHhTH/image.png](https://i.postimg.cc/fRZhHhTH/image.png).
 * Also, you can put the CSS below in Customizing > Custom CSS/JS > CSS Code:
 *     ```
       #wrap .galleryid-1742 .gallery-item {
           padding: 0 !important;
       }
       ```
   
 * For more information about the CSS/JS code on the customizer, please read this
   link:
    [https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website](https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website).
 * **Note:** if you have any cache plugin or server cache(CDN / Browser Cache and
   Cookies and …), you need to clear its cache contents or disable them to see your
   changes. Also, don’t forget to click on the regenerate all assets file and data
   in Elementor > Tools.
 * I hope that helps.
 * Best Regards
 *  Thread Starter [hazy23](https://wordpress.org/support/users/hazy23/)
 * (@hazy23)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/gallery-143/#post-16171944)
 * Thanks Shahin!
 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/gallery-143/#post-16172061)
 * You’re very welcome,
    I’m glad we could help.

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

The topic ‘Gallery’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shahin](https://wordpress.org/support/users/skalanter/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/gallery-143/#post-16172061)
 * Status: resolved