Color alternate rows with different color
August 23, 2012
Posted by on
Most of us prefer to show a table element with alternate rows showing different background colors.
There has been multiple solutions in the history to do that.
I am posting here two simpler and newer ways to do it.
With CSS 3 doing this is way simple.
Simple isn’t it.
For the older browsers like IE8, IE7 etc. this may not work. For them, we can use jQuery to do it.
The code above can do the trick for us.