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

Tables next to tables

Status
Not open for further replies.

gwar2k1

Programmer
Apr 17, 2003
387
GB
hmm... how do I position a table next to a table? so far ive only been able to put one below the other but i need what i ask of ;)

TIA

~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
 
two options :
create a third new table with one row and two columns.
Copy paste the code for each table inside the cell you want it to show.

Second option : use CSS
<table style=&quot;float:left;&quot; border=&quot;1&quot; bordercolor=&quot;blue&quot;>
<tr>
<td>Hi there</td>
<td>Hi there</td>
<td>Hi there</td>
</tr>
<tr>
<td>Hi there</td>
<td>Hi there</td>
<td>Hi there</td>
</tr>
</table>
<table border=&quot;1&quot; bordercolor=&quot;red&quot;>
<tr>
<td>Hi there</td>
<td>Hi there</td>
<td>Hi there</td>
</tr>
<tr>
<td>Hi there</td>
<td>Hi there</td>
<td>Hi there</td>
</tr>
</table>


grtfercho çB^]\..
&quot;Imagination is more important than Knowledge&quot; A. Einstein
 
*takes the css approach* ;) cheerz

<pre>
_______________________
| ___ ________________ |
| | ||_______________||
| | ||_______________||
| |__| |
| |
|______________________|

</pre>
gonna look something like that

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
hmm no html eh? oh well...

any who: it leaves a lil white space inbetween the cells that i dont particularly want

the table the two other tables are in is fine, they fit snugly against its borders. But they dont meet up together :'(

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
<table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td>
One table here
</td>
<td>
The other here
</td>
</tr>
</table>



try that

grtfercho çB^]\..
&quot;Imagination is more important than Knowledge&quot; A. Einstein
 
gwar, please note that this is an HTML and CSS forum for these types of questions, forum215. This forum is generally for broader web site design topics rather than technical implementations.
 
yeah thats what ive got... :(

ok thanks for the help grtfercho and thanks for the link Genimuse

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top