|
-
Nov 5th, 2002, 08:46 AM
#1
Thread Starter
Member
Table - top align
Hello,
What is the tag to align text in the TOP of the table. I have 2 tables next to one another (within a bigger table), and I want both sides of the tables to have the text aligned to the top. What it does now, is if the one table (on the left) has less lines of text than the other table (on the right) - it moves the left sides tables data to the middel.
Hope this makes sense
-
Nov 5th, 2002, 09:23 AM
#2
Conquistador
valign="top"
-
Nov 5th, 2002, 10:34 AM
#3
Frenzied Member
You can also use style:
Code:
style="vertical-align: top;"
It has more options, but sometimes it's a little hard to get right.
-
Nov 5th, 2002, 03:03 PM
#4
Thread Starter
Member
Help.....
Hello,
Thanks for the replies, but I still cannot get it right. Here is what I mean to do. The
right column will almost always have more "lines" than the left, but I want the left table's
data to ALWAYS be on top - ie valign="top" - no matter how many rows are on the right.
Thanks for the help.
GBP
Code:
<BODY>
<TABLE border="1">
<TR>
<TD><TABLE valign="top">
<TR>
<TD>Left Table</TD>
</TR>
<TR>
<TD>Left Table</TD>
</TR>
</TABLE ></TD>
<TD><TABLE>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
</TABLE></TD>
</TR>
</TABLE>
</BODY>
-
Nov 5th, 2002, 04:10 PM
#5
Conquistador
Re: Help.....
Code:
<BODY>
<TABLE border="1">
<TR>
<TD valign="top"><TABLE>
<TR>
<TD>Left Table</TD>
</TR>
<TR>
<TD>Left Table</TD>
</TR>
</TABLE ></TD>
<TD valign="top"><TABLE>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
<TR>
<TD>Right Table </TD>
</TR>
</TABLE></TD>
</TR>
</TABLE>
</BODY>
Rushed... see how it works..
-
Nov 5th, 2002, 04:13 PM
#6
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|