Open achimmihca opened 3 years ago
Centering a table does not work properly (same for align right).
I tried:
<table align="center">...</table>
<table style="margin-left:auto; margin-right:auto;">...</table>
The first seems to set a indentation. The second seems to do nothing.
Instead, a jc-element (justification) inside tblPr (tableProperties) should be generated:
... <w:tbl> <w:tblPr> <w:jc w:val="center"/> ...
Above XML is created by MS Word when selecting center under right click on table > table properties
center
right click on table > table properties
As workaround for now, one can set margin-left to a fitting value if the table width is known.
hey @achimmihca i am also facing the same issue with alignment. Has there been any development or updates on this.
I don't know of any developments
Centering a table does not work properly (same for align right).
I tried:
<table align="center">...</table>
<table style="margin-left:auto; margin-right:auto;">...</table>
The first seems to set a indentation. The second seems to do nothing.
Instead, a jc-element (justification) inside tblPr (tableProperties) should be generated:
Above XML is created by MS Word when selecting
center
underright click on table > table properties
As workaround for now, one can set margin-left to a fitting value if the table width is known.