How does Wordpress handle HTML Tables interaction with jQuery
<p>I have javascript that gets the width of a table and reduces the css fontsize of text within the table until the table width is less then the width of its parent div.</p>

<p>The code bellow shows the principle ONLY.</p>

<p>This approach works out side Wordpress. Within Wordpress the fontsize is reduced to 0px and the width of the table width shrinks, but remains wider than the width of its parent.</p>

<p>Outside wordpress the browser adjust the table width to fit the text.</p>

<p>So how does Wordpress handle HTML Tables different?</p>

<pre><code>function ShrinkTable() {
var FontSize = parseInt($("#tbl").css('font-size').replace('px', ''),10);
var TabWidth = jQuery("#tbl").width();
var DivWidth = jQuery("#narrorColumn");
if (parseInt(DivWidth.css('width').replace('px', ''),10) &lt;= TabWidth) {
    jQuery("#tbl").css('font-size', FontSize - 1 + 'px'); /* you can change 4 with any number, the smaller is better but it may require more loop */
    //Shrink the font while div width is less than table width
    ShrinkTable();
  }
}    
</code></pre>
