morten fjellman wrote:
Hi,
I've finally added my entire dvd list in a database, and now I want to write it out on my web site. My first thought is that this should be marked up as a table, but then again it is a list.
This is the information:

Maybe a DL? Any thoughts?

I'd definitely stick to the table. A table is still a list of rows and columns, and would make the universal nature of the attributes (name, entry date, tagline) clearer and easier to input/manage.

If you decide you would rather have it displayed as you just have, you could always use CSS to make it appear that way (you could even allow users to switch between views).

My suggestion in code:

<table id="DVDlisting">
 <tbody>
  <tr class="columnHeadings">
   <td>Name</td>
   <td>Entry date</td>
   <td>Tagline</td>
   <td>Genre</td>
   <td>Director</td>
   <td>Starring</td>
   <td>Language</td>
   <td>Runtime</td>
   <td>Summary</td>
  </tr>
  <tr class="filmEntry">
   <td class="Name">Cool Hand Luke</td>
   <td class="Entry date">2007/2/6</td>
   <td class="Tagline">"What we've got here is failure to communicate"</td>
   <td class="Genre">Drama</td>
   <td class="Director">Stuart Rosenberg</td>
<td class="Starring">Paul Newman, George Kennedy, J.D. Cannon, Lou Antonio, Robert Drivas, Strother Martin, Jo Van Fleet, Clifton James, Morgan Woodward, Luke Askew, Marc Cavell, Richard Davalos, Robert Donner, Warren Finnerty, , Dennis Hopper</td>
   <td class="Language">English</td>
   <td class="Runtime">126min</td>
<td class="Summary">Luke is sent to a prison camp, where he gets a reputation as a hard man. The head of the gang hates him, and tries to break him by beating him up. It doesn't work, and he gains respect. His mother dies, and he escapes, but is caught, escapes again, and is caught again. Will the camp bosses ever break him ?</td>
  </tr>
 </tbody>
</table>

CSS for list presentation:

#DVDlisting td
{display:block}
tr.columnHeadings
{display:none}
tr.filmEntry
{margin:2em 0 0 0}
tr.filmEntry td:before
{font-weight:bold;
 content:attr(class)}
td.Name:before
{content:""}
td.Name
{font-weight:bold;
 margin:0 0 1em 0}

That would make it appear pretty much as it does in your email, but you can retain the ease and functionality of cross-reference by reverting to standard table-cell display.

I think a DL is a lot more ambiguous and messy for something that is clearly tabular data. Remember, it's only layout purposes that make tables unpopular!


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to