In message <[email protected]>
          Richard Ashbery <[email protected]> wrote:

> In article <[email protected]>,
>    Chris Shepheard <[email protected]> wrote:
>> In message <[email protected]>
>>           Harriet Bazley <[email protected]> wrote:

>>> I'm having weird issues with table cell right-alignment in the second
>>> row of a table.

>>> Given the following cut-down table

>>> <TABLE WIDTH="100%" BORDER="1">
>>> <TR>
>>> <TD ALIGN="LEFT" WIDTH="20%">left align</TD>
>>> <TD ALIGN="CENTER">
>>> center align</TD>
>>> <TD ALIGN="RIGHT"WIDTH="20%">
>>> right align</TD>
>>> </TR>
>>> <TR>
>>> <TD ALIGN="LEFT" WIDTH="50%">left align</TD>
>>> <TD align="right"WIDTH="50%">right align</TD>

>> Have you tried inserting "SPAN=2" after the TD in the line above?

>>> </TR>
>>> </TABLE>

> COLSPAN="2" might work better

> Richard

Not sure that even this achieves what Harriet was intending judging
by the cell widths of 20% 60% (implied) 20% in the first line
and 50% 50% in the second line. Rather than explain in detail it is
easier (for me) to give my solution in full as it involves more 
colspans...

<TABLE WIDTH="100%" BORDER="1">
<TR>
<TD ALIGN="LEFT" WIDTH="20%">left align</TD>
<TD COLSPAN="2" ALIGN="CENTER">center align</TD>
<TD ALIGN="RIGHT" WIDTH="20%">right align</TD>
</TR>
<TR>
<TD colspan="2" ALIGN="LEFT" WIDTH="50%">left align</TD>
<TD colspan="2" ALIGN="RIGHT" WIDTH="50%">right align</TD>
</TR>
</TABLE>

Regards,

-- 
Graham Pickles
www.whitbymuseum.org.uk     Whitby Museum
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.455 / Virus Database: 271.1.1/5433 - Release Date: 12/02/12 
20:19:00

Reply via email to