Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Thicker border every nth table row

Hi all ... I want to separate rows in a large-ish table with thicker borders every (I'm thinking 5?) rows.  Been trying stuff but I think my brain is fried.  Anyone got ideas?
asked Nov 29, 2020 by Marion Bronze (4,440 points)
p.s. here is what I currently have.  It's very close, but it includes the label row in its count so doesn't look even.
<style>
#[% QuestionName() %]_div .inner_table > tbody > tr:nth-child(6n+0) {
    border-bottom: 2px solid black;
}
</style>
I HAVE IT!!!  By changing the (6n+0) to (5n+1)  it skips the header row and counts down 5 from there.

Your solution to the original question

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.
...