title: How can I truncate table cells, but fit as much as content possible?
body: <p>Meet Fred. He's a table:</p>
  
  <p><img src="https://i.stack.imgur.com/twAeu.png" alt="One cell has more content and is wider, the other has less content and is narrower"></p>
  
  <pre><code>&lt;table border="1" style="width: 100%;"&gt;
      &lt;tr&gt;
          &lt;td&gt;This cells has more content&lt;/td&gt;
          &lt;td&gt;Less content here&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Fred's apartment has a bizarre habit of changing size, so he's learned to hide some of his content so as not to push all the other units over and shove Mrs. Whitford's living room off into oblivion:</p>
  
  <p><img src="https://i.stack.imgur.com/lY0xI.png" alt="The cells are now the same size, but only one has its content truncated, and it looks like if the other cell gave if some whitespace, they could both fit."></p>
  
  <pre><code>&lt;table border="1" style="width: 100%; white-space: nowrap; table-layout: fixed;"&gt;
      &lt;tr&gt;
          &lt;td style="overflow: hidden; text-overflow: ellipsis"&gt;This cells has more content&lt;/td&gt;
          &lt;td style="overflow: hidden; text-overflow: ellipsis"&gt;Less content here&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>This works, but Fred has a nagging feeling that if his right cell (which he's nicknamed Celldito) gave up a little space, his left cell wouldn't be truncated quite as much of the time. Can you save his sanity?</p>
  
  <hr>
  
  <p>In summary: How can a table's cells overflow evenly, and only when they've all given up all their whitespace?</p>