The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> code with class nd col, what does this code do
jvandal
post Jul 30 2015, 09:37 PM
Post #1





Group: Members
Posts: 2
Joined: 30-April 07
Member No.: 2,677



table border="0">
<tr><th>ID</th><th>CAr </th><th>Year</th></tr>
%for row in rows:
%id = row[0]
%brand = row[1]
%yearoner = row[2]
%color = row[3]
<tr>
<td class="col1">{{id}}</td>
<td>{{brand}} </td>
<td>{{yearoner}}</td>
# <td class="col3">{{color}}</td>
<td><a href="/edit/{{id}}">Edit</a></td>
<td><a href="/delete/{{id}}">Delete</a></td>
</tr>
%end
</table>

why don't the row[] have the same rowumber?
class = 'col1'
what doess class mean? and then col 'col1' reference col 1 ?
I would have thought col1 equal col1. then col2 should be mentioned before col3. why "class?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


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: 2nd August 2021 - 08:41 PM