Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created November 19, 2021 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayosec/c56a07ccbf57d2b8d172caf2fc83c2cf to your computer and use it in GitHub Desktop.
Save ayosec/c56a07ccbf57d2b8d172caf2fc83c2cf to your computer and use it in GitHub Desktop.
table, tbody {
counter-reset: rownumber
}
tr {
counter-increment: rownumber
}
tr > td:first-child:before {
content: counter(rownumber);
color: red
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment