How to delete an element inside the last CMS item

Greetings, webflow experts!

I want to clear the internal elements of the last item in CMS.
However, I cannot select with [Structure] - [Last Item].

I only want to remove the last “history-line” inside the 2013 item. I ask for advice from experts. Thank you in advance :)



Here is my public share link: Webflow - Copy of 제로스톤 2024.12.19

You have a few approaches, the main thing to understand about Webflow’s last item state selector is that it only applies to the Collection List Item element that wraps your content.

That means if you designed your element so that the left border was your history line, it would work fine.

However since that isn’t how you’ve designed it, here’s a simple approach. You can add this to your page head custom code.

<style>
.history-item:last-of-type .new-history-line {
  display: none;
}
</style>
1 Like

Thank you so much!
Happy New Year!! :) :sunrise: