M
mre
Hi
Is it possible to have each column cell in a table to be left-aligned
with each other, but also right-aligned with the cell based on the
longest content.
So a table like...
<table>
<tr><td>aaa</td><td>bbb</td></tr>
<tr><td>aaaaaa</td><td>bbb</td></tr>
<tr><td>aaaaa</td><td>bbb</td></tr>
</table>
....could be output like...
______Left align
|
[[ aaa ][bbb ]]
[[ aaaaaa][bbb ]]
[[ aaaaa ][bbb ]]
|____|
|___Right align as a group
to the center of the table
....at the moment, the closest I have is right-aligning the TD, and in
that, having a left-aligned SPAN where I set the em width manually -
but as the page is generated dynamically, I can only really guess what
that'll be.
Thank you for any help,
Regards,
MRe
Is it possible to have each column cell in a table to be left-aligned
with each other, but also right-aligned with the cell based on the
longest content.
So a table like...
<table>
<tr><td>aaa</td><td>bbb</td></tr>
<tr><td>aaaaaa</td><td>bbb</td></tr>
<tr><td>aaaaa</td><td>bbb</td></tr>
</table>
....could be output like...
______Left align
|
[[ aaa ][bbb ]]
[[ aaaaaa][bbb ]]
[[ aaaaa ][bbb ]]
|____|
|___Right align as a group
to the center of the table
....at the moment, the closest I have is right-aligning the TD, and in
that, having a left-aligned SPAN where I set the em width manually -
but as the page is generated dynamically, I can only really guess what
that'll be.
Thank you for any help,
Regards,
MRe