I need help targeting all elements except the last one in a ul/li list with CSS. The structure looks like this:
<ul class="xxx">
<li>
<figure>
[different divs / content]
</figure>
</li>
<li>
<figure>
[different divs / content]
</figure>
</li>
<ul>
My goal is to apply a border-bottom style to all elements except the last one...
.xxx{
figure:not(:last-child) {
/* attributes */
}
}
Any suggestions on what I'm doing wrong here? Thanks in advance!