|
|
|
date: Fri, 21 Apr 2006 08:48:34 -0400,
group: microsoft.public.inetsdk.html_authoring
back
RE: align table columns (<td>'s)
Hi Daniel,
To do that I think you need to set the Size for the columns and force the
text to wrap if it is long than the size of the row, say for example, if i
understood this right;
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=50%>----------</td>
<td width=50%>-----------</td></tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=50%>----------</td>
<td width=50%>-----------</td></tr>
</table>
this will align the columns together in the same level for (1 and A) & (2
and B)
hope this help
nass
http://www.nasstec.co.uk
"Daniel Gunn" wrote:
> Hi, I have two distinct tables whose column widths I wish to align. For
> instance
> <table>
> <tr>
> <td>Column 1</td>
> <td>Column 2</td>
> </tr>
> </table>
>
> <table>
> <tr>
> <td>Column A</td>
> <td>Column B</td>
> </tr>
> </table>
>
> In this example, no matter what the contents of the tables, I want
> Column A to lign up with column 1. (same with 2 and B).
>
> I have explored using CSS "table { table-layout: fixed; }", to just hack
> all table columns to be the same width. This hack doesnt work well in
> our case, in which this table contains multiple columns and is embedded
> in another table, its possible that the table will be truncated and the
> user cannot see whats in some columns.
>
> Any solutions?
>
date: Mon, 1 May 2006 09:53:02 -0700
author: nass
|
|