help for php table problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rwon
Forum Newbie
Posts: 4
Joined: Sat May 21, 2005 9:45 am

help for php table problem

Post 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.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Please post your code.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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?
R0d Longfella
Forum Newbie
Posts: 20
Joined: Fri Apr 08, 2005 7:17 am

Post 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>
cg111
Forum Newbie
Posts: 4
Joined: Sun May 22, 2005 8:49 am
Location: China

Post by cg111 »

i suggest you can use CSS! :P
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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|
-------------
rwon
Forum Newbie
Posts: 4
Joined: Sat May 21, 2005 9:45 am

Post by rwon »

Thank you very much for all the help, folks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Shifted to Client-side
Post Reply