Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table 1 - space - Table 2 2

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
Can someone please tell me the syntax for putting a space between 2 different tables? Thanks
 
Thanks Chacalinc, thats what I thought, but it does not like it.

//Previous Table ends
</table>";

<BR>

//New Table starts
echo "<table border='1' width='100%' id='table1'>\n
etc

Why? Thanks
 
needs to be
Code:
..</table>";

echo "<br>";

//New Table starts
echo "<table border='1' width='100%' id='table1'>\n";
 
also i would not use single quotes you should rather use \"

single quotes are not xhtml compliant
 
steven290, could you point me to the reference that claims that? I have never had trouble with single quotes in xhtml.

I would personally use css to get the margin working.
If it is the second table, use this:
Code:
echo "<table border='1' width='100%' id='table1' style='margin-top: 20px;'>\n";
If it is the first, use this:
Code:
echo "<table border='1' width='100%' id='table0' style='margin-bottom: 20px;'>\n";
All in all, it would be best if you move to the stylesheet, since you already define an id for the table.
 
Thanks, that solved it. I'd tried the echo statement but ommited the ;

Moving again, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top