In message <52f84ae078riscos@gotadsl.co.uk>
Richard Ashbery <riscos@gotadsl.co.uk> wrote:
> In article <e7eceaf752.chris.shepheard@shepheard.plus.com>,
> Chris Shepheard <chris.shepheard@chrispics.co.uk> wrote:
>> In message <682ee8f752.harriet@blueyonder.co.uk>
>> Harriet Bazley <lists@orange.wingsandbeaks.org.uk> 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 comments:
Post a Comment