Tables

Status
Not open for further replies.

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
Here is the code I'm using, I have 3 tables:

<?
echo "<table border = \"1\" width = \"13%\">";
//stuff that goes in the table
echo "</table>";

echo "<table border = \"1\" width = \"35%\">";
//stuff in the table
echo "</table>";
?>

<table border = "0" align = "center" valign = "bottom"><tr><td>
//more stuff in the table
</td></tr></table>


The tables pop up as


table
table
table


All three tables stack on top of eachother. The third one is centered, but it is not at the bottom like I would like it to be. I would prefer if they looked like this:


table table




table




does anyone have any ideas whats wrong with my script
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
For that, you should have something like this
Code:
<table width="100%">
 <tr><td><!-- First Table Here --></td><td><!-- Second Table Here --></td></tr>
 <tr><td colspan="2"><!-- Third Table Here --></td></tr>
</table>

- Use Width Attribute for First & Second Table
- Use float / text-align for TD Elements to make tables alignment as per your needs

Hope, this will help you.
 
Status
Not open for further replies.
Top