title: Changing text wrapping behavior in HTML table
body: <p>I have an HTML table in which one particular cell can have long text (up to a paragraph). Is there a way to change the way text wraps in that cell so that if it is long enough to stretch the table horizontally it instead wraps and possibly stretches the table vertically? I want the width of the column to be determined dynamically by the rest of the cells in the column as it would be if there was no text in that cell.</p>
  
  <p><strong>Clarification:</strong> I want the width of the cell with potentially long text to be determined entirely by the widths of the other cells in the columns, with the text in it wrapped to fit within that width. I do not want to have a static column width or max column width because the page is generated dynamically with data from a database.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;&lt;td&gt;Test Test Test&lt;/td&gt;&lt;/tr&gt;
      &lt;tr&gt;&lt;td class="X"&gt;Test Test Test Test Test Test Test Test Test&lt;/td&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Where <code>"X"</code> denotes the cell that should wrap when possible</p>
  
  <p>The default behavior is</p>
  
  <pre><code>|--------------------------------------------|
  |Test Test Test Test                         |
  |--------------------------------------------|
  |Test Test Test Test Test Test Test Test Test|
  |--------------------------------------------|
  </code></pre>
  
  <p>I want it to instead do</p>
  
  <pre><code>|-------------------|
  |Test Test Test Test|
  |-------------------|
  |Test Test Test Test|
  |Test Test Test Test|
  |Test               |
  |-------------------|
  </code></pre>
  
  <p>Even if this is smaller than the width of the screen. I am wondering if it is possible to do this without knowing the width of any of the text when I create the table.</p>