+ 1
Can I make striped-table, if so which code should I use?
3 Respuestas
+ 2
You could apply classes to every other row via CSS. Alternatively you could use JavaScript to do this for you. Ex: Create a functiom that loops through your rows and applies a class to every other row (either even or odd) for you. Additionally, you could check (twitter) Bootstrap. They might have something. 🤷🏾♀️ Lol. Good luck.
0
Try adding this to your stylesheet:
tr:nth-child(even){background-color: #f2f2f2}
0
@Erica, nice info. Now I know, that JS could do that,but maybe I will use bootstrap instead :D . thanks...