Auto increment number for Table rows using HTML and CSS
Auto increment number for Table rows using HTML and CSS <style type=”text/css”> table{counter-reset:section;} .count:before { counter-increment:section; content:counter(section); } </style> <table border=”1″> <tr> <td class=”count”></td> <td>Harry</td> </tr> <tr> <td class=”count”></td> <td>Simon</td> </tr> <td class=”count”></td> <td>Maria</td> </tr> <tr> <td class=”count”></td> <td>Victory</td> </tr> </table>
