Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Table row indexing

body{
  counter-reset: Serial;           /* Set the Serial counter to 0 */
}

table{
  border-collapse: collapse;
}

tr td:first-child:before{
  counter-increment: Serial;      /* Increment the Serial counter */
  content:counter(Serial);        /* Display the counter */
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Table #row #indexing
ADD COMMENT
Topic
Name
7+7 =