Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Align Columns from Multiple Tables

Reply
Thread Tools

Align Columns from Multiple Tables

 
 
justengland@gmail.com
Guest
Posts: n/a
 
      02-21-2007
I have a web page that has 4 tables, 1 table is the holder for the
other 3 tables. I want to columns to line up in the 3 tables, but the
text within the table cells is dynamic so the column widths from table
to table are inconsistent. Is there any tricks to make the 3 table
line up?

Code looks something like this
<table bordercolor=black border=2>
<tr>
<td>
<table bordercolor=green border=2>
<tr>
<td>Some Text</td>
<td>More Text</td>
<td>This Text</td>
</tr>
</table>
<table bordercolor=blue border=2>
<tr>
<td>Longer Text goes here</td>
<td>Longer Text goes here</td>
<td>Longer Text goes here</td>
</tr>
</table>
</td>
</tr>
</table>

 
Reply With Quote
 
 
 
 
Remy
Guest
Posts: n/a
 
      02-21-2007
Obvious answer is that you could try something like this:

<table bordercolor=black border=2>
<tr bordercolor=green border=2>
<td>Some Text</td>
<td>More Text</td>
<td>This Text</td>
</tr>
<tr bordercolor=blue border=2>
<td>Longer Text goes here</td>
<td>Longer Text goes here</td>
<td>Longer Text goes here</td>
</tr>
</table>

depends how you want your table to look like. And I think adding the
border color to the tr element is actually not a good idea, but you
could add it to the td elements.
Then, everybody recommends css nowadays...


 
Reply With Quote
 
 
 
 
justengland@gmail.com
Guest
Posts: n/a
 
      02-21-2007
The problem I was haveing was because I had set the table width, and
then set the column widths. To get the alignment correct you can
either set the table width or column widths, when you mix the parser
messes everything up.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align Columns from Multiple Tables justengland@gmail.com HTML 0 02-21-2007 08:00 PM
Align table columns with gridview columns Jacksm ASP .Net 2 11-21-2006 09:49 PM
How to get database metadata information (i.e. existing tables and columns in tables) Chris Brat Python 5 08-22-2006 05:25 PM
text-align vs align tshad HTML 1 06-23-2005 10:29 PM
how to Align text left & vertical align middle Kay ASP .Net 2 07-25-2003 08:32 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57