title: Setup table column width
body: <p>I am trying to setup a table column width to only 200px or 10%. However, when I populate the data from the database, the column seems to ignore the column width and expand it as much as it can. Here is my table html.</p>
  
  <pre><code>&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;a href='#'&gt;City&lt;/a&gt;&lt;/th&gt;   
          &lt;th width='200' class='table_width'&gt;&lt;a href='#'&gt;name&lt;/a&gt;&lt;/th&gt; 
          &lt;th&gt;&lt;a href='#'&gt;Agent&lt;/a&gt;&lt;/th&gt;
          &lt;th&gt;... 
      //I have tried class and width attribute. both don't work. 
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
          &lt;tr&gt;
              //these column data were popluated from database
              &lt;td&gt;&lt;?= $row-&gt;city; ?&gt;&lt;/td&gt;
              &lt;td width='200' class='table_width'&gt;&lt;?= $row-&gt;_name; ?&gt;&lt;/td&gt;  
              //ignore the width and expand the table cell. 
              &lt;td&gt;&lt;?= $row-&gt;agent; ?&gt;&lt;/td&gt; 
              &lt;td&gt;...
  
          &lt;/tr&gt;
  </code></pre>
  
  <p>
  </p>