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

html tables 1

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
hi there!

Does anyone know how to get 2 html tables to sit side by side?
I have 2 tables each with 3 columns and I'd like to have them right next to eachother but can't seem to get it down.

Any help would be greatly appreciated!
 
nest them into one table
<table>
<tr>
<td>
<table align=&quot;left&quot;>
<tr>
<td>one</td>
</tr>
</table>
</td>
<td>
<table align=&quot;right&quot;>
<tr>
<td>two</td>
</tr>
</table>
</td>
</tr>
</table> ---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Or use stylesheet properties:
<table style=&quot;display:inline&quot;>

You need it in both tables, because by default tables have line breaks before and after.
Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) &&(((parseIntx.toString()+y.toString())-x-y)%9)!=0)){alert(&quot;I'm a monkey's uncle&quot;);}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top