T
Tom de Neef
My web server produces a html page with a table.
The user can select the page and copy it to Word (ctrl+A ctrl+C -> ctrl+V)
and I want the layout (as well as the contents) of the table to be correct
in the document. The problem is with the layout.
The simplest layout item to discuss is align="right". Consider a table
where this attribute applies to several columns.
a) when each cell gets the attribute via <td align="right">, there is no
problem. Browsers and Word display correctly.
b) when I use <table><colgroup align="right"> or <colgroup
style="text-align:right"> or <colgroup><col align="right"> etc, then FF will
not display the table correctly.
c) when I use <style>td.r {text-align:right}</style> in combination with <td
class="r">, browsers will be correct but Word will not show the alignment.
So, I use approach a), but the file gets rather big since there are several
other layout attributes as well (such as padding-right, border-right).
I would appreciate suggestions for improvements (reduction in file size,
correct display in all modern browsers, Word copies layout info when
copy/pasting to it).
TIA
Tom
The user can select the page and copy it to Word (ctrl+A ctrl+C -> ctrl+V)
and I want the layout (as well as the contents) of the table to be correct
in the document. The problem is with the layout.
The simplest layout item to discuss is align="right". Consider a table
where this attribute applies to several columns.
a) when each cell gets the attribute via <td align="right">, there is no
problem. Browsers and Word display correctly.
b) when I use <table><colgroup align="right"> or <colgroup
style="text-align:right"> or <colgroup><col align="right"> etc, then FF will
not display the table correctly.
c) when I use <style>td.r {text-align:right}</style> in combination with <td
class="r">, browsers will be correct but Word will not show the alignment.
So, I use approach a), but the file gets rather big since there are several
other layout attributes as well (such as padding-right, border-right).
I would appreciate suggestions for improvements (reduction in file size,
correct display in all modern browsers, Word copies layout info when
copy/pasting to it).
TIA
Tom