Is there a best-practice way to build an item display with multiple columns, but without using tables?
What I want to do is build something like this:
Name Price Quantity Edit Delete Apple $5.00 25 [edit] [delete] Pear $4.00 3 [edit] [delete] Banana $12.00 5 [edit] [delete]
But without cluttering the HTML with table layout data...
Yes, use a table, but no, don't clutter your html with layout attributes. Move all the rules for how things should look to a separate CSS file, leaving your html clean & sleek.
The most clutter you'll need to deal with are class names in your TD tags to deal with the variety of data formats you're presenting:
<tr>
<td class="name">Apple</td>
<td class="price">$5.00</td>
<td class="qty">25</td>
<td class="button"><submit value="edit"... /></td>
<td class="button"><submit value="delete"... /></td>
</tr>This way you can make decisions about how each cell is formatted & aligned separately from your decisions about which data appear there.
Cheers,
Paul
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
