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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -