Clone Project

Alternating Grid CMS items

Created by
emilvillumsen
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
Description from Webflow:  
👉 Notice how the image is on the left in the first row and to the right in the next? That's the topic of this cloneable. For a static layout this would be simple either rearranging the elements inside your grid or reversing the direction. For a CMS collection this is not possible in Webflow without custom code. So here it is, using a hack that's not really intended for this, but it gets the job done. The first line of code forces every second item to go from right to left. The second line forces the text wrapper to always be left to right so our text doesn't get messed up. Browser support is just fine. <style> .w-dyn-item:nth-child(even) { direction: rtl; } .two-column-content { direction: ltr;} </style> -- Stay tuned to more cloneables on https://twitter.com/EmilVillumsen or here on Webflow --
Tags from Webflow: 
grid, cms, collections, collection, alternate, cloneable, cloneables
.