Category Archives: CSS

[Snippet] CSS: Add Numbering For Each Row of Table

Using modern CSS, we can generate a set of numbering for each of table row of a table.

Let’s say we have a table in html as follow

To create a  numeric for table row in our first table data column, we will only use a modern CSS as follow

Numeric 1,2,3,… will be added to our first td for each tr. Modified the css code above as you want.