title: display: block squeezing table
body: <p>I've created a table which holds some data, i was getting an error where my table was being squeezed when i added <code>display: block</code> to which i fixed by using a solution i found on stack-overflow which is <a href="https://stackoverflow.com/questions/45937046/tr-squeezed-when-tbody-is-displayblock">&lt;tr&gt; squeezed when &lt;tbody&gt; is display:block</a>. This however gave me another display error which makes the first column on my table 100% width and leaves the others squeezed.</p>
  
  <p>Any suggestions/help on how i would fix this would be appreciated.</p>
  
  <p>How the table looks;</p>
  
  <p><a href="https://i.stack.imgur.com/c2xmx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c2xmx.png" alt="enter image description here"></a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    #requestContents tr{
          page-break-inside: avoid !important;
      }
      
      #requestContents td{
          width: 100% !important;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>        &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"&gt; 
        &lt;table class="table table-bordered table-condensed" id="requestContents" style="display: block; height: 250px; overflow-y: scroll"&gt;
            &lt;thead&gt;
              &lt;tr&gt;
                &lt;th&gt;Request ID&lt;/th&gt;
                &lt;th&gt;Request Type&lt;/th&gt;
                &lt;th&gt;Blood Type&lt;/th&gt;
                &lt;th&gt;Notice&lt;/th&gt;
                &lt;th&gt;Request Date&lt;/th&gt;
              &lt;/tr&gt;
            &lt;/thead&gt;
            &lt;tbody&gt;
              &lt;tr&gt;
                &lt;td&gt;Dummy Dat&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
                &lt;td&gt;Dummy Data&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>