Join the Webstudio community

Updated 4 weeks ago

CMS Collection - can I make one instance of a CMS collection of items styled differently?

Making a project gallery with a bunch of thumbnails. The gallery is a grid of 2 columns, but some of the images are better suited to a 1:2 aspect ratio, is it possible to make some span both of the columns and the others normal?
Attachment
image.png
B
C
4 comments
You can conditionally render two versions. Just bind "show" setting to your condition.
Will give this a try - thanks @TrySound
I added a 'Featured' boolean field in my CMS and linked it to that, just wondering if there's a way to bind that to a token or something that adds / removes the CSS property grid-column-end: span 2;
What would be best practice?
For now you can only render two boxes with diffrrent styles and conditionally hide one and show another with "show" setting
Add a reply
Sign up and join the conversation on Discord