Page 1 of 1
help for php table problem
Posted: Sat May 21, 2005 9:50 am
by rwon
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.
Posted: Sat May 21, 2005 9:52 am
by hawleyjr
Please post your code.
Posted: Sat May 21, 2005 12:22 pm
by phpScott
that will likely come down to how your tables are layed out. did you use a contianer table to align the smaller tables correctly?
Posted: Sun May 22, 2005 9:57 am
by R0d Longfella
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>
Posted: Sun May 22, 2005 10:42 am
by cg111
i suggest you can use CSS!

Posted: Sun May 22, 2005 3:22 pm
by Ambush Commander
This is a client-side question.
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|
-------------
Posted: Sun May 22, 2005 7:33 pm
by rwon
Thank you very much for all the help, folks.
Posted: Sun May 22, 2005 7:49 pm
by Chris Corbyn
Shifted to Client-side