title: making the div width stretch to fit its contents
body: <p>I have the following html code:</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;div id="fixmywidth" style="position:relative; height:30px;"&gt;
          &lt;div style="z-index: 2000; margin-top: 5px; height: inherit; position: absolute;"&gt;
            &lt;table style="height:inherit"&gt;
              &lt;tr style="height:inherit"&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
                ........300 tds later
                &lt;td align="center" style="width: 31px; height: inherit;"&gt;&amp;nbsp;&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/table&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt; 
  </code></pre>
  
  <p>how do i make the div with the id "fixmywidth" width fit the width of the containing elemets?
  i tried width=100%
  and widht = auto
  but they wouldn't work
  thanks a trillion in advance,
  Lina</p>