Well, if I'm not mistaken text-align is only available on block level stuff (<p>s, <div>s, etc.) whereas <span>'s inline, which is why that didn't work. However, you seem to be using a lot o' presentational-style (choosing an element to achieve an effect), which is really frowned upon. XHTML has meaning--you're trying to make a table with <div>s and <span>s, you really should use a <table> there:
Code:
<div id="sideBar">
<!--headers should be marked up as headers-->
<h1>Table Like Things</h1>
<!--you're marking up tabular data;
there's no shame in using a table-->
<table summery="...describe the table here...">
<tr>
<th>Item One:</th>
<td>Value One</td>
</tr>
<tr>
<th>Item Two:</th>
<td>Value Two</td>
</tr>
</table>
<!--...-->
<Table>s aren't bad if they're used correctly. Any markup used incorrectly is no better and usually no worse than misusing a <table>. :-)
~~Ian
Bookmarks