Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

How can I create a Masonry Layout in Elementor Pro using Flexbox or Grid? [duplicate]

$
0
0

I'm building a testimonial wall using Elementor Pro. I have a parent container set to Flexbox with Direction: Row and Wrap: Yes. Inside this, there are multiple child containers (Single Testimonial Container). Some containers have very little text, but all share the same height, making some of them look too empty.

I want to achieve a masonry layout where the height of each testimonial adjusts based on its content, similar to a Pinterest-style layout. I tried using custom CSS with grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)), but Elementor throws errors, especially when there's a line break inside the repeat().

enter image description here

What’s the correct way to apply a masonry layout inside Elementor’s Custom CSS panel?


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>