Help - Search - Members - Calendar
Full Version: 3 Cell Table?
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
GamesFan
Anyone know the html code for a three cell table that I can put up on the ol' web site?
wozzym
ya do you want them in rows? or columns? but anyways the code follows:

4 cell table:
CODE
<table border = "1">
<tr>
<td> This is a cell </td>
<td> This is another cell</td>
<tr>
<td>This is a new row </td>
<td> Heres another cell </td>
<tr>
</table>


Ok so to add another row you simply put the <tr> tag between each table cell.
Jetteh22
yeah as wozzym said... i dont know how you want it.. Three in a row, left to right or three in a row up and down?

Left-to-right
CODE
<table>
<tr>
<td>one cell</td>
<td>two cell</td>
<td>three cell</td>
</tr>
</table>


Up and down
CODE
<table>
<tr>
<td>one cell</td>
</tr>
<tr>
<td>two cell</td>
</tr>
<tr>
<td>three cell</td>
</tr>
</table>


And then there is even one cell on top of two other cells

CODE
<table>
<tr>
<td colspan="2">one cell, on top</td>
</tr>
<tr>
<td>one cell on bottom</td>
<td>another on bottom</td>
</tr>
</table>

hope that helped.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.