title: XSL-FO: How to set dynamic table width?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Does someone has an idea of how to solve that?</p>
  
  <p>Here my markup:</p>
  
  <pre><code>&lt;inline width="auto"&gt;
      &lt;table table-layout="fixed"&gt;
          &lt;table-column column-width="6.36mm"/&gt;
          &lt;table-column/&gt;
          &lt;table-column column-width="6.36mm"/&gt;
          &lt;table-column/&gt;
          &lt;table-column column-width="6.36mm"/&gt;
          &lt;table-column/&gt;
          &lt;table-column column-width="6.36mm"/&gt;
          &lt;table-column/&gt;
          &lt;table-body&gt;
              &lt;table-row&gt;
                  &lt;table-cell padding-right="1.6mm"&gt;
                      &lt;block-container height="3mm" width="4.76mm" overflow="hidden"&gt;
                          &lt;block&gt;
                              &lt;external-graphic content-height="3mm" src="image1.jpg"/&gt;
                          &lt;/block&gt;
                      &lt;/block-container&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell&gt;
                      &lt;block&gt;
                          Image name 1
                      &lt;/block&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell padding-right="1.6mm"&gt;
                      &lt;block-container height="3mm" width="4.76mm" overflow="hidden"&gt;
                          &lt;block&gt;
                              &lt;external-graphic content-height="3mm" src="image2.jpg"/&gt;
                          &lt;/block&gt;
                      &lt;/block-container&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell&gt;
                      &lt;block&gt;
                          Image name 2
                      &lt;/block&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell padding-right="1.6mm"&gt;
                      &lt;block-container height="3mm" width="4.76mm" overflow="hidden"&gt;
                          &lt;block&gt;
                              &lt;external-graphic content-height="3mm" src="image3.jpg"/&gt;
                          &lt;/block&gt;
                      &lt;/block-container&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell&gt;
                      &lt;block&gt;
                          Image name 3
                      &lt;/block&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell padding-right="1.6mm"&gt;
                      &lt;block-container height="3mm" width="4.76mm" overflow="hidden"&gt;
                          &lt;block&gt;
                              &lt;external-graphic content-height="3mm" src="image4.jpg"/&gt;
                          &lt;/block&gt;
                      &lt;/block-container&gt;
                  &lt;/table-cell&gt;
                  &lt;table-cell&gt;
                      &lt;block&gt;
                          image name4
                      &lt;/block&gt;
                  &lt;/table-cell&gt;
              &lt;/table-row&gt;
          &lt;/table-body&gt;
      &lt;/table&gt;
  &lt;/inline&gt;
  </code></pre>
  
  <p>(Maybe important notice: My columns need to be toggling with fixed and auto-width)</p>
  
  <p>Thank you already!!!</p>