By using’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Unofficial Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor

    Join us!
elementor official

Gallery Block — Custom image sizes



New Member

I've got a gallery with a number of images in one column. Most are landscape, and they look great, but the one portrait image is way too big. I tried scaling it down using :nth-of-type, but the gallery height doesn't seem to adjust to the new layout. There's a bunch of white space below the image I scaled down. Looks like I might need to add in some JS or jQuery to fix that, but I have limited experience with those languages.

I can't use individual image blocks, because I need the lightbox to open with arrows. Although maybe there's a solution to that, too?


Latest posts

Latest Resources

Other Elementor Resources

elementor official