JeffChastain
Programmer
I am playing with using CSS for all of my layouts - i.e. no tables. I am needing to simulate the effect of having a table row split into two cells and I am running into problems.
I have a <div representing a page header. I need to split that header into two pieces - one aligned left, and one aligned right. The table code I would use would be as follows ...
<table ...
<tr>
<td align=left" valign="middle">Left Cell Content</td>
<td align="right" valign="middle">>Right Cell Content</td>
</tr>
</table>
So how do I do this in CSS? This does not appear to work.
<div id="header">
<span style="text-align: left; vertical-align: middle;">Left Cell Content</span>
<span style="text-align: right; vertical-align: middle;">Right Cell Content</span>
</div>
Thanks
-- Jeff
I have a <div representing a page header. I need to split that header into two pieces - one aligned left, and one aligned right. The table code I would use would be as follows ...
<table ...
<tr>
<td align=left" valign="middle">Left Cell Content</td>
<td align="right" valign="middle">>Right Cell Content</td>
</tr>
</table>
So how do I do this in CSS? This does not appear to work.
<div id="header">
<span style="text-align: left; vertical-align: middle;">Left Cell Content</span>
<span style="text-align: right; vertical-align: middle;">Right Cell Content</span>
</div>
Thanks
-- Jeff