+ 1

Can I make striped-table, if so which code should I use?

19th Apr 2017, 2:43 AM
Gayuh Marga Hardhika
Gayuh Marga Hardhika - avatar
3 Answers
+ 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.
19th Apr 2017, 3:04 AM
Erica Perkins
Erica Perkins - avatar
0
Try adding this to your stylesheet: tr:nth-child(even){background-color: #f2f2f2}
19th Apr 2017, 5:29 AM
Ɓlvaro
0
@Erica, nice info. Now I know, that JS could do that,but maybe I will use bootstrap instead :D . thanks...
19th Apr 2017, 6:08 AM
Gayuh Marga Hardhika
Gayuh Marga Hardhika - avatar