If its last or first Item, you can do it by selecting the collection item, make sure you have class on that and click the right arrow to act as subclass, see attached image. Or check this tutorial from webflow Style first, last, odd, even items in your CMS | Webflow University
maybe in collection list, make it gird and cell spacing of 1px (size of the border you prefer), and add background color to the main grid (border color you prefer) then add background color to the cell/item. To wrap the whole table, add border to the main grid.
I think you canāt apply a single class only to one of a collection item. But the @webdev answers seems working well. Otherwise you can try to add some stuff (column, div, etcā¦) before with your collection into and style that.
I think a best practice is : do not style a collection or an item directly.
In this example the first line with 2 posts has ālimit itemsā set to Show:2 Start at: 1 and the second line : Show:1 Start at: 3 for the left post. So you can use the same collection and apply different style.
Thank you, yes, Iāve had some success with using two CMS collections in a row; stopping one, and resuming with the second. This allows a change in styling.
Feels like Iām doing it a clumsy way, so Iām appreciative of your insights.
TL;DR add a new div in the collection item, style as divider, negative margin to position it outside the parent, set parent to overflow hidden
Super interesting challenge and i think i found something that works. Gonna try my best to explain it without being able to send back the edited share link. first id suggest removing the combo classes form the collection items.
to create the divider:
set the collection item to flex horizontal, full height, bottom border 1px
width of content in item 100% with 20px bottom margin
add a div into the collection item
style the new div as a divider (i did 80% height, 1px wide)
position the divider relative and set position top 10% (this is half the remainder to center it vertically)
divider then gets margin left 2px, margin right -2px
set collection list overflow to hidden
bottom border on collection list
max width for collection list wrapper is 990px with auto margin, padding 10px
hopefully that helps
PS id suggest filtering the various collections with a category (dropdown option in the CMS), as using āstarting atā will require you to shift everything if new content is added above. and this method allows you to do both rows with one collection.