help for php table problem
Moderator: General Moderators
help for php table problem
I am trying to build a page with 2 tables which should be side by side, next to each other.
But when I run my php script, the second table always appears below the first one. The table widths are OK.
What commands or formatting function should I use to make the two tables appear side by side?
Many thanks.
But when I run my php script, the second table always appears below the first one. The table widths are OK.
What commands or formatting function should I use to make the two tables appear side by side?
Many thanks.
-
R0d Longfella
- Forum Newbie
- Posts: 20
- Joined: Fri Apr 08, 2005 7:17 am
You could put the smaller tables in another table, ie:
Code: Select all
<table cellspacing=0 cellpadding=0>
<tr><td>
<table><!-- Left table here --!></table>
</td><td>
<table><!-- Right table here --!></table>
</td></tr>
</table>- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
This is a client-side question.
If you want the two tables to be displayed side to side, why not merge them?
If you want the two tables to be displayed side to side, why not merge them?
Code: Select all
-------
| 1| 2|
-------
| 3| 4|
-------
-------
| 5| 6|
-------
| 7| 8|
-------Code: Select all
-------------
| 1| 2| 5| 6|
-------------
| 3| 4| 7| 8|
-------------- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia