Two Column HTML Table to CSS?

  • Thread starter Thread starter iain010100
  • Start date Start date
I

iain010100

Guest
I need to replace a simple HTML table cell with CSS.

<table>
<tr>
<td valign=top>One</td>
<td valign=top>Two</td>
</tr>
</table>

The layout looks like this:

One | Two

The content in each of the two cells needs to align to the top. The cells must expand to the width and height of the content within. The top position of the table needs to be relative to what's above it (not absolute position). I'm not sure how to place cell Two using CSS. Can anyone help?
 
http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/

using this layout, all content will align to top, and the item will lay out properly wherever you put it.
 
Back
Top