- Code: Select all
<w:tblW w:w="5000" w:type="pct"/>
And for kicks and giggles, I also included a table set to 50%:
- Code: Select all
<w:tblW w:w="2500" w:type="pct"/>
However, when I import this docx via Docx4J.toHTML, the resulting HTML gives fixed lengths for the table widths, which just doesn't make any sense.
The 100% table:
- Code: Select all
<table ... style="... width: 165mm;">
The 50% table:
- Code: Select all
<table ... style="... width: 3.25in;">
From ...