code with class nd col, what does this code do |
code with class nd col, what does this code do |
jvandal |
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? |
Lo-Fi Version | Time is now: 29th March 2024 - 07:38 AM |