Aligning divs (alternate: left then right) within collection list

Hello, I would like to align my divs alternatively within collection list. How do I go about this? (attached)

Here is my site Read-Only:

here is what I want:

1 Like

Custom code with CSS :nth-child() selector, with ODD and EVEN values

This way you can give different positioning properties to odd and even items.

hello Vincent, wouldnt that imply that I change my values at every breakpoint to keep this responsive?

Inside of the custom code? Not necessarily.

Your design can be achieve with a float left or right to make the elements stick to the left and the right.

So for example make them all float left inside of Webflow, then add custom code targetting the EVEN rows and make them float:right. This doesn’t need to be adjusted for responsivity. You’ll play with the dimensions of your elements to address responsivity.

1 Like