Please, how to "index" table cells? |
Please, how to "index" table cells? |
pinklemon |
Jan 4 2015, 10:23 AM
Post
#1
|
Advanced Member Group: Members Posts: 140 Joined: 29-June 14 Member No.: 21,166 |
Hello, here is the code:
CODE <!DOCTYPE html> <html> <head> <style> td { background-color:red; } </style> </head> <body> <table id="ta" width="300px" height="100px" border="2px"> <tr> <td></td> <td></td> <td></td> <tr> </body> </html> I wish I could index first cell as 1, second as 2 third as 3 etc... Can someone help please,? Many thanks!!! This post has been edited by pinklemon: Jan 4 2015, 11:01 AM |
CharlesEF |
Jan 4 2015, 12:52 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
You mean you want each cell, <td>, to have an id starting with the number 1? If this is correct then I think you need to use server-side code to build/name the cells.
|
Lo-Fi Version | Time is now: 26th April 2024 - 05:01 PM |