Highlight 3 rows in a table

I would like to highlight the first 3 rows of a table displayed in a view. I know how to highlight, but I can’t figure out how to code either in JS or CSS to find the first 3 rows.
Thanks for your help

Unfortunately I’m not a coder but I’m wondering if a fellow partner (and Canadian :canada:) @hmnd wouldn’t mind helping @NancyM :+1:

3 Likes

Hey @NancyM,

This CSS selector should work!
#yourView .kn-table > tbody > tr:nth-child(-n+3)

2 Likes

Thank you very much. It works wonderfully

2 Likes