Forum Bugs

width of floating div containing a table

fnardone
Hi, this is very similar to this http://www.princexml.com/bb/viewtopic.php?f=2&t=1108&p=2871
but it applies to tables with sized columns.
When a floating div contains a table having a width rule on <td>, the container div is sized (in width) as if the table had not any width rule (the same happens if one sizes the <col> instead of the <td>).
Example:
<html>
  <head>
    <style>
      table {
        background-color: #cfc;
      }
      td.smallCell {
        background-color: #ccf;
        width: 50mm;
      }
      table.smallTab {
        background-color: #ffc;
        width: 100mm;
      }
      div {
        background-color: #fcc;
        float: left;
      }
    </style>
  </head>
  <body>
    <div>
      <table>
        <tr>
          <td class="smallCell">Some long text which will hopefully wrap on more than one line.</td>
          <td class="smallCell">Another Cell</td>
        </tr>
      </table>
    </div>
    <div>
      <table>
        <tr>
          <td class="smallCell">Some long text which will hopefully wrap on more than one line.</td>
          <td>Another Cell</td>
        </tr>
      </table>
    </div>
    <div>
      <table>
        <tr>
          <td>Some long text which will hopefully wrap on more than one line.</td>
          <td>Another Cell</td>
        </tr>
      </table>
    </div>
    <div>
      <table class="smallTab">
        <tr>
          <td>Some long text which will hopefully wrap on more than one line.</td>
          <td>Another Cell</td>
        </tr>
      </table>
    </div>
  </body>
</html>

I am using Prince 6.0 rev 8 on Win XP

Edit: I have the same problem in Prince 7.0
mikeday
Thanks, I'll add this issue to the roadmap.
mikeday
This issue should now be fixed in Prince 9, thank you for letting us know about it. :)