Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Alternate table row colours


topr8 - 3:41 pm on May 23, 2012 (gmt 0)


couldn't be more simple!

Fotiman got in before me! as he shows just add the style to the head or your style sheet and it will do it automatically! you could do this which would give your table alternate red and blue rows

<style>
tr:nth-child(odd) {background-color:red;}
tr:nth-child(even) {background-color:blue;}
</style>


Thread source:: http://www.webmasterworld.com/css/4456880.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com