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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing of 2 tables

Status
Not open for further replies.

rmittal

Programmer
Aug 8, 2000
8
US
I was able to place 2 tables side-by-side but now the problem is the first table has less rows than the second one so it is coming in the center of the one big table. I want to start from the leftmost position. I tried using valign and align but it did not work. The code I have written is something like this....

<html>
<body>
<form>
<table cellpadding=5 cellspacing=5>
<tr>

<td>
<table border=1>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
</table>
</td>


<td>
<table valign='top' border=1>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>

Please help....
 
change line 7 of your code from &quot;<td>&quot; to &quot;<td valign=top>&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top