Results 1 to 6 of 6

Thread: Table - top align

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    34

    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

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    valign="top"


  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You can also use style:

    Code:
    style="vertical-align: top;"
    It has more options, but sometimes it's a little hard to get right.

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    34

    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>

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    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..

  6. #6

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    34

    Thanks all!!!! (NM)

    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width