<style type=”text/css”> tr.s1{ background-color: #e0e0e0; color: black; } tr.s2{ background-color: #ffffff; color: black; } </style> <table> <tr class=”s1″><td>ciao</td><td>come</td></tr> <tr class=”s2″><td>stai</td><td>io</td></tr> <tr class=”s1″><td>bene</td><td>grazie</td></tr> <tr class=”s2″><td>saluti</td><td>ciao</td></tr> </table>
Archive for the ‘CSS’ Category
How to alternate row color in tables with CSS
Posted in CSS, HTML, Javascript on June 7, 2007 | Leave a Comment »