Jump to content

[SOLVED] 2 tables


Aravinthan

Recommended Posts

Hi,

 

I am trying to put 2 tables next to each other...

 

But it keeps going on the bottome, even if there is alot of space next to each other...

 

WHy is that?

 

Here is the table code:

<table>
 			<caption>Meilleurs Buteurs</caption>
 			<thead>
 				<tr>
 					<th>Nom</th>
 					<th>PJ</th>
 					<th>Bts</th>
 				</tr>
 			</thead>
 			<tfoot>
 				<tr>
 					<th colspan='3'> </th>
 				</tr>
 			</tfoot>
				<tr>
					<td>Name</td>
					<td>PJ</td>
					<td>Goals</td>
				</tr>
				<tr class="odd">
					<td>Name</td>
					<td>PJ</td>
					<td>Goals</td>
				</tr>
				<tr>
					<td>Name</td>
					<td>PJ</td>
					<td>Goals</td>
				</tr>
			</table> 
		<table>
 			<caption>Meilleurs Pointeurs</caption>
 			<thead>
 				<tr>
 					<th>Nom</th>
 					<th>PJ</th>
 					<th>Pts</th>
 				</tr>
 			</thead>
 			<tfoot>
 				<tr>
 					<th colspan='3'> </th>
 				</tr>
 			</tfoot>
				<tr>
					<td>Name</td>
					<td>PJ</td>
					<td>Points</td>
				</tr>
				<tr class="odd">
					<td>Name</td>
					<td>PJ</td>
					<td>Points</td>
				</tr>
				<tr>
					<td>Name</td>
					<td>PJ</td>
					<td>Points</td>
				</tr>
			</table>

Link to comment
Share on other sites

Yes. Either give the left table a right margin, or the right table a left margin. Or even give both tables a right margin that's probably the easiest, and if your right table isn't butted right up against the edge of the page, the margin on it won't be noticible.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.