title: Can I mix percent width and pixel width in my html table headers?
body: <p>I have a table where the number of columns may change (from 1 to 10), with the exception of one column which should always stay at a fixed width so that there's no extra space or it doesn't wrap (it will be used to add or delete rows in the table).</p>
  
  <p>The table should be no wider than 800px total, and I'd like to have a submit button floated to the right.</p>
  
  <p>Is there a way to set the table column widths that are changing as a percentage, and the one static column as a fixed pixel width?  Or will that cause problems?  I've tried a number of different approaches, but all seem suboptimal.  Is there an elegant way to do this?  I've attached a picture for reference: <a href="http://bayimg.com/BAlLLaaDP" rel="noreferrer">http://bayimg.com/BAlLLaaDP</a>.</p>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;style&gt;
          #container {
           width: 800px;
         }
         #table_container {
           padding:5px;
         }
         #table_container table {
           width: 85%;
         }
         .action {
         }
         col {
         width:29%;
         }
         table {
         width:650px;
         table-layout: fixed;
         float: left;
         }
       &lt;/style&gt;
       &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="container" class="clearfix"&gt;
  
      &lt;form&gt;
              &lt;table class="" border=1&gt;
                  &lt;colgroup&gt;
                      &lt;col &gt;
                      &lt;col&gt;
                      &lt;col&gt;
                      &lt;col class="action"&gt;
                  &lt;/colgroup&gt;
                  &lt;th&gt;First Name&lt;/th&gt;
                  &lt;th&gt;Last Name&lt;/th&gt;
                  &lt;th&gt;Email &lt;/th&gt;
                  &lt;th&gt;&lt;/th&gt;
                  &lt;tr&gt;
                      &lt;td&gt;content 1&lt;/td&gt;
                      &lt;td&gt;content 2&lt;/td&gt;
                      &lt;td&gt;content 3 &lt;/td&gt;
                      &lt;td&gt;&lt;a href=""&gt;delete row&lt;/a&gt;
                  &lt;/tr&gt;   
                  &lt;tr&gt;
                      &lt;td&gt;content 1&lt;/td&gt;
                      &lt;td&gt;content 2&lt;/td&gt;
                      &lt;td&gt;content 3 &lt;/td&gt;
                      &lt;td&gt;&lt;a href=""&gt;delete row&lt;/a&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;div class="mult_answer"&gt;
              &lt;button class="button orange"&gt;Submit Answer&lt;/button&gt;
          &lt;/div&gt;
          &lt;/form&gt;
  
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>