How do I put the table headers above the table cells if they are in the same table row?

Posted by James Skidmore on Stack Overflow See other posts from Stack Overflow or by James Skidmore
Published on 2010-06-03T20:18:04Z Indexed on 2010/06/03 20:24 UTC
Read the original article Hit count: 243

Filed under:
|
|

I have a table like this:

<table>
  <tr>
    <th>Header</th>
    <td>Content</td>
  </tr>
  <tr>
    <th>Header</th>
    <td>Content</td>
  </tr>
</table>

How can I make the header actually float above the content cell without putting everything on a separate row? For instance:

Header
Content

Header
Content

© Stack Overflow or respective owner

Related posts about html

Related posts about css