I have this problem: I need a FO-table, which is just as wide as the width of the content (cells). But when I add a table in my FO-markup, it is always acting like a Block-Level-Element and using the width of the wohle row.
Confusing for me: If I wrap it into an Inline-Element (which has the expected behavior), the Table has not the behavior of the Inline-Element but turns again to be a Block-Element.
Does someone has an idea of how to solve that?
Here my markup:
<inline width="auto">
<table table-layout="fixed">
<table-column column-width="6.36mm"/>
<table-column/>
<table-column column-width="6.36mm"/>
<table-column/>
<table-column column-width="6.36mm"/>
<table-column/>
<table-column column-width="6.36mm"/>
<table-column/>
<table-body>
<table-row>
<table-cell padding-right="1.6mm">
<block-container height="3mm" width="4.76mm" overflow="hidden">
<block>
<external-graphic content-height="3mm" src="image1.jpg"/>
</block>
</block-container>
</table-cell>
<table-cell>
<block>
Image name 1
</block>
</table-cell>
<table-cell padding-right="1.6mm">
<block-container height="3mm" width="4.76mm" overflow="hidden">
<block>
<external-graphic content-height="3mm" src="image2.jpg"/>
</block>
</block-container>
</table-cell>
<table-cell>
<block>
Image name 2
</block>
</table-cell>
<table-cell padding-right="1.6mm">
<block-container height="3mm" width="4.76mm" overflow="hidden">
<block>
<external-graphic content-height="3mm" src="image3.jpg"/>
</block>
</block-container>
</table-cell>
<table-cell>
<block>
Image name 3
</block>
</table-cell>
<table-cell padding-right="1.6mm">
<block-container height="3mm" width="4.76mm" overflow="hidden">
<block>
<external-graphic content-height="3mm" src="image4.jpg"/>
</block>
</block-container>
</table-cell>
<table-cell>
<block>
image name4
</block>
</table-cell>
</table-row>
</table-body>
</table>
</inline>
(Maybe important notice: My columns need to be toggling with fixed and auto-width)
Thank you already!!!