Translation - Μετάφραση

Resources, Technical Assistance and Technology News => Translator resources => Tips on Using Computers => Topic started by: spiros on 29 May, 2021, 16:18:53

Title: Autonumber table rows (html, css)
Post by: spiros on 29 May, 2021, 16:18:53
Autonumber table rows (html, css)
The result will be
1.
2.
...

Code: [Select]
table
{
    counter-reset: rowNumber;
}

table tr > td:first-child
{
    counter-increment: rowNumber;
}

table tr td:first-child::before
{
    content: counter(rowNumber)".";
    min-width: 1em;
    margin-right: 0.5em;
}
javascript - Auto-number table rows? - Stack Overflow (https://stackoverflow.com/questions/17012421/auto-number-table-rows)