html - Color every second row of the table -


this question has answer here:

i need color every second row in table. love on attached image ideas how this?

enter image description here

even , odd rules

one way improve readability of large tables color alternating rows. example, table below has light gray background rows , white odd ones. rules extremely simple:

css:

tr:nth-child(even) {background: #ccc} tr:nth-child(odd) {background: #fff} 

check here google 1st result


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -