title: Forcing <table> Columns to a Fixed Width; Prevent Automatic Expand
body: <p>I generally set fixed column widths via CSS with flawless results:</p>
  
  <pre><code>#tableID thead tr th:nth-child(1){width: 75px;} 
  #tableID thead tr th:nth-child(2){width: 75px;}
  /* etc… */
  </code></pre>
  
  <p>But now I'm in a situation where I won't know the desired column widths until runtime. Here's an excerpt from the code I'm using to dynamically set the column widths:</p>
  
  <pre><code>var tr=$("&lt;tr&gt;");
  var colArr=Home.ColDefs[this.statBatchType].colArr;
  for(var i=0;i&lt;colArr.length;i++){
      var col=colArr[i];
      tr.append(
          $("&lt;th&gt;")
              .html(col.title)
              .css("width",col.width)
      );
  }
  this.jqTHead.append(tr);
  </code></pre>
  
  <p>Sorry this code is a bit out of context but the bottom line is that I'm adding columns, represented by <code>&lt;th&gt;</code> elements, to a table header and setting each one's width.</p>
  
  <p>What ACTUALLY happens, however, is that Firefox is treating the column width as a minimum and then automatically expanding the column width as the user expands his browser window. Consider a case where my JavaScript code sets the width of each column to 75px. Firefox will ensure each column is at least 75px wide, but if the user maximizes (or enlarges) his browser,  provided there is sufficient room, each column will be automatically widened.</p>
  
  <p>This is odd to me since the JavaScript code would seem to be the functional equivalent of what I was doing in CSS. Yet the CSS approach doesn't cause this odd behavior.</p>
  
  <p>Any thoughts?</p>