Make a striped table

Tags: #<Tag:0x00007f8b1cc82b08>

Please, how do I make a striped table with alternating colors? I used a className and added the style to my css file, but the style is not being applied to the table.

Hi @magneticdigital1

Do you mean something like this

if so you can use the modulo to attach a className via cells method. Here’s a demo https://jsfiddle.net/uqp91om3/

Let me know if that meets your requirements.

yes, exactly. this works.

Also, I would like to remove the grey lines around the cells.

Removing the borders of cells requires a small change in the default CSS settings of the table. You can do achieve it like this https://jsfiddle.net/waoe1hv5/

Result