# Variable image layouts

**URL:** <https://forum.bubble.io/t/variable-image-layouts/159284>\
**Category:** Need help\
**Created:** [July 9, 2021, 4:16pm UTC](https://forum.bubble.io/t/variable-image-layouts/159284 "2021-07-09T16:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean13](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean13/32/92379_2.png) [@sean13](https://forum.bubble.io/u/sean13)\
**Post date:** [July 9, 2021, 4:16pm UTC](https://forum.bubble.io/t/variable-image-layouts/159284/1 "2021-07-09T16:16:23Z")

</div>

I have an API I’m connecting to that grabs objects that have images. Sometimes there are none, sometimes one, sometimes multiple. I’d like to figure out a way to lay them out attractively regardless of the number of images pulled in, ideally on a horizontal orientation of some type - would you just use a series of repeating groups with conditional logic to display based on the number if images returned by the object? Or is there a better way to do this?

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [July 9, 2021, 7:00pm UTC](https://forum.bubble.io/t/variable-image-layouts/159284/2 "2021-07-09T19:00:13Z")

</div>

> [@Pinterest-Style Cascading Grid Layout](http://forum.bubble.io/t/pinterest-style-cascading-grid-layout/4043):
>
> Hello Everyone! slight_smile I was recently reading about Pinterest and how they use a ‘cascading grid layout’ for their website. The article I read led me to this link: [http://masonry.desandro.com/](http://masonry.desandro.com/) with instructions on how to install this ‘cascading grid layout’ on a website with JavaScript. I honestly don’t know very much at all about JavaScript and just wanted to ask if this is something that would be possible for me to implement in a Bubble app (with some learning/practice of understandi…

May help…I’d search pintrest layout

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 17, 2021, 4:16pm UTC](https://forum.bubble.io/t/variable-image-layouts/159284/3 "2021-09-17T16:16:24Z")

</div>

Closed on September 17, 2021, 4:16pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
