title: Table columns do not align with their fixed headers in IE
body: <p>I am creating a scrolling table with fixed headers which works perfectly except for one slight issue. The columns do not align with their headers in IE, but they do align properly in the other major browsers (Chrome, firefox, opera, safari)</p>
  <p>My question is what do I need to add or maybe even remove so I can the get the alignment sorted in IE?</p>
  <p>Below is a screen grab showing what it looks like:</p>
  <p><img src="https://i.stack.imgur.com/SmGaR.png" alt="enter image description here" /></p>
  <p>Below is HTML and CSS regarding of table above with their dummy data:</p>
  <p>HTML:</p>
  <pre><code>    &lt;table id=&quot;tableqanda&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
      &lt;thead&gt;
      &lt;tr&gt;
          &lt;th width=&quot;5%&quot; class=&quot;questionno&quot;&gt;Question No.&lt;/th&gt;
          &lt;th width=&quot;29%&quot; class=&quot;question&quot;&gt;Question&lt;/th&gt;
          &lt;th width=&quot;7%&quot; class=&quot;option&quot;&gt;Option Type&lt;/th&gt;
          &lt;th width=&quot;6%&quot; class=&quot;noofanswers&quot;&gt;Number of Answers&lt;/th&gt;
          &lt;th width=&quot;8%&quot; class=&quot;answer&quot;&gt;Answer&lt;/th&gt;
          &lt;th width=&quot;6%&quot; class=&quot;noofreplies&quot;&gt;Number of Replies&lt;/th&gt;
          &lt;th width=&quot;6%&quot; class=&quot;noofmarks&quot;&gt;Number of Marks&lt;/th&gt;
          &lt;th width=&quot;11%&quot; class=&quot;image&quot;&gt;Image&lt;/th&gt;
          &lt;th width=&quot;11%&quot; class=&quot;video&quot;&gt;Video&lt;/th&gt;
          &lt;th width=&quot;11%&quot; class=&quot;audio&quot;&gt;Audio&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;/table&gt;
      &lt;div id=&quot;tableqanda_onthefly_container&quot;&gt;
      &lt;table id=&quot;tableqanda_onthefly&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
      &lt;tbody&gt;
          &lt;tr class=&quot;tableqandarow&quot;&gt;
  &lt;td width=&quot;5%&quot; class=&quot;questionno&quot;&gt;1&lt;/td&gt;
  &lt;td width=&quot;29%&quot; class=&quot;question&quot;&gt;What is 4+4&lt;/td&gt;
  &lt;td width=&quot;7%&quot; class=&quot;option&quot;&gt;A-E&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofanswers&quot;&gt;1&lt;/td&gt;
  &lt;td width=&quot;8%&quot; class=&quot;answers&quot;&gt;B&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofreplies&quot;&gt;Multiple&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofmarks&quot;&gt;5&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;imagetd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;videotd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;audiotd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class=&quot;tableqandarow&quot;&gt;
  &lt;td width=&quot;5%&quot; class=&quot;questionno&quot;&gt;2&lt;/td&gt;
  &lt;td width=&quot;29%&quot; class=&quot;question&quot;&gt;Name these 2 things&lt;/td&gt;
  &lt;td width=&quot;7%&quot; class=&quot;option&quot;&gt;A-D&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofanswers&quot;&gt;2&lt;/td&gt;
  &lt;td width=&quot;8%&quot; class=&quot;answers&quot;&gt;A,C&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofreplies&quot;&gt;Multiple&lt;/td&gt;
  &lt;td width=&quot;6%&quot; class=&quot;noofmarks&quot;&gt;5&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;imagetd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;videotd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td width=&quot;11%&quot; class=&quot;audiotd&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
      &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;/div&gt;
  </code></pre>
  <p>CSS:</p>
  <pre><code>#tableqanda_onthefly_container
  {
      width:100%;
      overflow-y: scroll;
      overflow-x: hidden;
      max-height:500px;
      clear:both;
  }
  
  #tableqanda_onthefly
  {
      width:100%;
      clear:both;
      overflow:auto;
  }
  
  #tableqanda, #tableqanda_onthefly{
      border:1px black solid;
      border-collapse:collapse;
      table-layout:fixed;
  }   
  
  #tableqanda{
      width:100%;
      margin-left:0;
      float:left;
  }   
              
  
  #tableqanda td { 
      vertical-align: middle;
  }
       
  #tableqanda th{
      border:1px black solid;
      border-collapse:collapse;
      text-align:center;
  }
  
  
  #tableqanda_onthefly td{
      border:1px black solid;
      border-collapse:collapse;
      word-wrap:break-word;
  }
  
  .tableqandarow{
      border:1px black solid;
      border-collapse:collapse;
  }
  </code></pre>
  <p>I also have a jQuery code which sets a width of a scroll abr but do not know if this makes a difference:</p>
  <pre><code>$(document).ready(function(){
      var flag = true;
      
      if(flag == true)
      {
          var qanda_tbl = $(&quot;#tableqanda&quot;).width();
          $(&quot;#tableqanda&quot;).css({&quot;width&quot;: (qanda_tbl - 16)+ &quot;px&quot;});
      }
      
      var qanda_tbl_onthefly = $(&quot;#tableqanda_onthefly&quot;).width();
      
      if(qanda_tbl &gt; qanda_tbl_onthefly)
      {
           $(&quot;#tableqanda&quot;).css({&quot;width&quot;: (qanda_tbl_onthefly - 16)+ &quot;px&quot;});
           $(&quot;#tableqanda_onthefly_container&quot;).css({&quot;width&quot;: (qanda_tbl_onthefly)+ &quot;px&quot;});
      }
      });
  </code></pre>
  <p><strong>UPDATE:</strong></p>
  <p>I forgot to include a Jfiddle, Here is a jsfiddle which as you can see it aligns the columns correctly with the current code. But there must be something missing in ie in order for it to do this in ie: <a href="http://jsfiddle.net/q5ukD/1/" rel="nofollow noreferrer">http://jsfiddle.net/q5ukD/1/</a></p>