Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 tables next to each other 1

Status
Not open for further replies.

mimi2

Technical User
Apr 2, 2002
407
CA
hello . i am trying to display 3 tables with this code but the third one does not align with the first ones.


<table whith=&quot;100%&quot;>

<tr>
<td> </td>
</tr>
<table whith=&quot;40%&quot; align=left>
<tr>
<td> </td>
</tr>
<table whith=&quot;40%&quot; align=center>
<tr>
<td> </td>
</tr>
<table whith=&quot;20%&quot; align=right>
<tr>
<td> </td>
</tr>

<table >

 
you have to end all the nested tables.

are you attempting to have one column or a row
here's a column
<table>
<tr>

<table>
<tr>
<td>blah </td>
</tr>
</table>

<table>
<tr>
<td valign=top>blah </td>
</tr>
</table>

<table>
<tr>
<td valign=top>blah </td>
</tr>
</table>

<table>
<tr>
<td valign=top>blah </td>
</tr>
</table>

</tr>
</table>
I help at your own risk, if I brake it sorry! But if I fixed it, let me know with a
star.gif
[thumbsup2]
admin@onpntwebdesigns.com
 
why are you nesting the tables?
why not do this
<table>
<tr>
<td valign=&quot;top&quot; width=&quot;40%&quot;>
blah </td>
<td valign=&quot;top&quot; width=&quot;40%&quot;>
blah </td>
<td valign=&quot;top&quot; width=&quot;20%&quot;>
blah </td>
</tr>
</table> I help at your own risk, if I brake it sorry! But if I fixed it, let me know with a
star.gif
[thumbsup2]
admin@onpntwebdesigns.com
 
You seem to have various closing tags missing ... this can be done 2 ways with your 3 tables

1: Using 1 table with 3 cells next to each other

<table width=&quot;100%&quot;>
<tr>
<td width=&quot;40%&quot;>Content</td>
<td width=&quot;40%&quot;>Content</td>
<td width=&quot;20%&quot;>Content</td>
</tr>
</table>

2: Using 1 table with a nested table within each of the 3 cells next to each other

<table width=&quot;100%&quot;>
<tr>
<td width=&quot;40%&quot;>
<table width=&quot;100%&quot;>
<tr>
<td>Content</td>
</tr>
</table>
</td>
<td width=&quot;40%&quot;>
<table width=&quot;100%&quot;>
<tr>
<td>Content</td>
</tr>
</table>
</td>
<td width=&quot;20%&quot;>
<table width=&quot;100%&quot;>
<tr>
<td>Content</td>
</tr>
</table>
</td>
</tr>
</table>

Cheers
Dayo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top