The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Please, how to "index" table cells?
pinklemon
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post 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.
User is online!PM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 05:01 PM