skip to Main Content

Html – Conditional sibling selector in CSS?

I have a <ul> with children <li>. All of the <li> are siblings. I need them all to be siblings so that htmx.takeClass(); works to highlight the active item. My layout is like this: <ul class="list-group list-group-flush" hx-on:click="if (event.target.classList.contains('list-group-item')) htmx.takeClass(event.target,…

VIEW QUESTION
Back To Top
Search