Help! with text between adjacent tables

Hi guys I need some help with my HTML. <br />
<br />
I am in my first HTML course and I am suppose to do a page with text within tables, but I just can find a way to do it.<br />
<br />
I have been able to do the two adjacent tables but when I put the text the second table(on the left) goes down. I tried changing the caption tag from "left" to "middle", but no luck. <br />
So far this is what I have.<br />
<html><br />
<head><title> testing</title></head><br />
<body><br />
<TABLE BORDER="1" align="left"><br />
<br />
<TR><br />
<TH>January</TH><br />
<TH>February</TH><br />
<TH>March</TH><br />
</TR><br />
<br />
<TR><br />
<TD>Row 1 Cell 1</TD><br />
<TD>Row 1 Cell 2</TD><br />
<TD>Row 1 Cell 3</TD><br />
</TR><br />
<br />
<TR><br />
<TD>Row 2 Cell 1</TD><br />
<TD>Row 2 Cell 2</TD><br />
<TD>Row 2 Cell 3</TD><br />
</TR><br />
</table><br />
<br />
<caption align="left"><br />
I need help with this text between tables. Why doesn't work? It's driving me crazy. I have look all over looking for a solution. Hope you can help me. Thanks in advance.<br />
</caption><br />
<br />
<TABLE BORDER="1" align="right"><br />
<TR><br />
<TH>January</TH><br />
<TH>February</TH><br />
<TH>March</TH><br />
</TR><br />
<br />
<TR><br />
<TD>Row 1 Cell 1</TD><br />
<TD>Row 1 Cell 2</TD><br />
<TD>Row 1 Cell 3</TD><br />
</TR><br />
<br />
<TR><br />
<TD>Row 2 Cell 1</TD><br />
<TD>Row 2 Cell 2</TD><br />
<TD>Row 2 Cell 3</TD><br />
</TR><br />
<br />
</TABLE> <br />
</body><br />
</html><br />
<br />
Thank you in advance for anyhelp you can give me.<!--content-->Hi there HTML_Student,<br />
<br />
Welcome to these forums,<br />
Here is one solution...<br />
I have put my additions in lower case :D <html><br />
<head><br />
<title> testing</title><br />
</head><br />
<body><br />
<TABLE BORDER="0" width="100%"><br />
<TR><br />
<br />
<td width="33.3%"><table border="1"><br />
<tr><br />
<br />
<TH>January</TH><br />
<TH>February</TH><br />
<TH>March</TH><br />
<br />
</TR><br />
<TR><br />
<br />
<TD>Row 1 Cell 1</TD><br />
<TD>Row 1 Cell 2</TD><br />
<TD>Row 1 Cell 3</TD><br />
<br />
</TR><br />
<TR><br />
<br />
<TD>Row 2 Cell 1</TD><br />
<TD>Row 2 Cell 2</TD><br />
<TD>Row 2 Cell 3</TD><br />
<br />
</TR><br />
</TABLE></td><br />
<br />
<td width="33.3%">I need help with this text between tables. Why doesn't work? It's driving me crazy. <br />
I have look all over looking for a solution. Hope you can help me. Thanks in advance.</td><br />
<br />
<td width="33.3%"><TABLE BORDER="1" ><br />
<TR><br />
<br />
<TH>January</TH><br />
<TH>February</TH><br />
<TH>March</TH><br />
<br />
</TR><br />
<TR><br />
<br />
<TD>Row 1 Cell 1</TD><br />
<TD>Row 1 Cell 2</TD><br />
<TD>Row 1 Cell 3</TD><br />
<br />
</TR><br />
<TR><br />
<br />
<TD>Row 2 Cell 1</TD><br />
<TD>Row 2 Cell 2</TD><br />
<TD>Row 2 Cell 3</TD><br />
<br />
</TR><br />
</TABLE></td><br />
<br />
</tr><br />
</table> <br />
</body><br />
</html><br />
<br />
c:D:Dthead<!--content-->Coothead, thank you so much for your answer.<!--content-->and just an FYI, <br />
<br />
The CAPTION element is only permitted immediately after the TABLE start tag<br />
<br />
not after the closing table tag.<!--content-->Hi, Does someone knows how to get the same layout, but using caption?<br />
<br />
<br />
Thanks for your help<!--content-->As the CAPTION tag can only appear after the TABLE tag, (before the TR tag), the caption will always appear on top on the table it's for. <br />
Try this:<br />
<br />
<td width="33.3%"><br />
<table><br />
<caption><br />
This table's caption<br />
</caption><br />
<tr><br />
<td><br />
I need help with this text between tables. Why doesn't work? It's driving me crazy. <br />
I have look all over looking for a solution. Hope you can help me. Thanks in advance.</td><br />
</tr><br />
</table><br />
</td><br />
<br />
in the center TD.<br />
Check out <!-- m --><a class="postlink" href="http://www.w3schools.com/tags/tag_caption.asp">http://www.w3schools.com/tags/tag_caption.asp</a><!-- m --><!--content-->
 
Back
Top