I’m with Paul in that I’m not sure that really qualifies as tabular data – though I don’t think I’d be abusing a definition list for it either since I don’t see terms and definitions… A regular unordered list with a span for the runtime should be more than enough…
to go through your code one bit at a time…
<table style="width: 461px; height: 963px;" border="0" cellpadding="1">
Using the style atttribute inline like that basically misses the point of CSS – likewise I wouldn’t bother with cellpadding or declaring border since you could just use:
td { padding:1px; }
table { border-collapse:collapse; border:0; }
…in your css.
<tbody>
Since you aren’t using thead, there’s no real reason to state tbody.
<tr style="background-color: #f8f7f6;">
<td colspan="3"><strong>General Tips<br />
</strong></td>
</tr>
Again, a pointless bandwidth wasting style attribute, you’ve got a line-break for no reason, and given the use of colspan and strong that shouldn’t be STRONG, that should be a TH.
<td style="width: 25px; height: 18px;"><a href="http://www.sitepoint.com/forums/wp-content/uploads/2011/06/camera-icon.gif"><img class="alignleft" title="camera-icon" src="http://www.sitepoint.com/forums/wp-content/uploads/2011/06/camera-icon.gif" alt="" width="17" height="17" /></a></td>
Waste of code applying that style to every TD like that, that’s what classes are for, that’s a presentational image so Iprobably wouldn’t even have that in the markup… the anchor I’m not even certain why it’s in there since it’s just a link to the icon (?!?)…
<td><a href="http://www.access-programmers.co.uk/?p=297">Tips for organising the database window</a></td>
<td>01:04</td>
This isn’t too bad, it’s really the only part I’d feel justified in using a table on as yes, it has rows and columns.
<tr>
<td></td>
<td></td>
<td></td>
</tr>
While this is just a waste of bandwidth for christmas only knows what.
That said, I’d probably code those thus:
<div class="videoLists">
<h3>General Tips</h3>
<ul>
<li>
<a href="/?p=297">
Tips for organising the database window
</a> 01:04
</li>
</ul>
<h3>Tables</h3>
<ul>
<li>
<a href="/microsoft-access/tables/how-to-create-a-simple-table/">
How to create a simple Table
</a> 05:58
</li><li>
<a href="/?p=272">
How to create a relationship between 2 tables
</a> 05:26
</li>
</ul>
<h3>Queries</h3>
<ul>
<li>
<a href="/microsoft-access/queries/how-to-create-a-simple-query/">
How to create a simple Query
</a> 06:43
</li>
</ul>
<!-- .videoLists --></div>
with this in your EXTERNAL stylesheet.
.videoLists h3 {
padding:0.5em;
font:bold 100%/140% arial,helvetica,sans-serif;
background:#F8F7F6;
}
.videoLists ul {
list-style:none;
}
.videoLists li {
overflow:hidden; /* wrap floats */
height:1%; /* holly hack, trip haslayout, wrap floats IE */
padding:0.5em 0;
text-align:right; /* moves date to right side next to floated anchor */
background:url(/wp-content/uploads/2011/06/camera-icon.gif) center left no-repeat;
}
.videoLists li a {
float:left;
display:inline; /* prevent IE margin bugs */
margin-left:17px; /* image width */
padding:0 1em 0 0.5em;
}
I might even consider adding <span>-</span> after each </a> with .videoLists li span { display:none; } in the CSS to add a divider that only shows up for non-CSS users. Graceful degradation and all that.
Hey, for once I didn’t rant and rave about all the garbage markup turdpress saddled you with that you really should take the time to rip out by the …