title: align table footer right
body: <p>I have a table which contains data and I want the first footer item to be aligned left and the remaining ones to be aligned right.</p>
  
  <p>Here is expected results:</p>
  
  <p><a href="https://i.stack.imgur.com/ZRNEp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZRNEp.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>table {
    width: 100%
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class="price-list"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;No&lt;/th&gt;
        &lt;th&gt;Nome&lt;/th&gt;
        &lt;th&gt;Quantidade&lt;/th&gt;
        &lt;th&gt;Preço&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;text1&lt;/td&gt;
        &lt;td&gt;text2&lt;/td&gt;
        &lt;td&gt;text3&lt;/td&gt;
        &lt;td&gt;text4&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tfoot class="footer"&gt;
      &lt;tr align="left"&gt;
        &lt;td id="cart_voucher" class=" cart_voucher"&gt;
          &lt;form action="http://localhost:8080/index.php?controller=order-opc" method="post" id="voucher"&gt;
            &lt;div class="form-group form-group-placeholder"&gt;
              &lt;input type="text" class="discount_name form-control" id="discount_name" name="discount_name" placeholder="Kod rabatowy" value=""&gt;
              &lt;i class="fa fa-angle-right discount_icon" aria-hidden="true"&gt;&lt;/i&gt;
              &lt;input type="hidden" name="submitDiscount"&gt;
            &lt;/div&gt;
          &lt;/form&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;!-- end VOUCHER --&gt;
      &lt;!-- Total products --&gt;
      &lt;tr align="right"&gt;
        &lt;td&gt;Total products &lt;/td&gt;
        &lt;td id="total_product"&gt;500,00 zł&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr align="right"&gt;
        &lt;td Total shipping (tax incl.):&gt;
        &lt;/td&gt;
        &lt;td id="total_shipping" class="price-opc"&gt;12,00 zł&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr align="right"&gt;
        &lt;td&gt;Total (tax excl.):&lt;/td&gt;
        &lt;td id="total_price_without_tax" class="price-opc"&gt;418,50 zł&lt;/td&gt;
      &lt;/tr&gt;
      &lt;!-- end Total tax excl. --&gt;
      &lt;!-- Total tax --&gt;
      &lt;tr align="right"&gt;
        &lt;td&gt;Total tax:&lt;/td&gt;
        &lt;td&gt;93,50 zł&lt;/td&gt;
      &lt;/tr&gt;
      &lt;!-- end Total tax --&gt;
      &lt;tr align="right"&gt;
        &lt;td&gt;Total:&lt;/td&gt;
        &lt;td&gt;
          &lt;span&gt;512,00 zł&lt;/span&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tfoot&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I used inline <code>align="left"</code> for first footer element and <code>align="right"</code>for the remaining ones. I get the following:</p>
  
  <p><a href="https://i.stack.imgur.com/Xoarq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xoarq.png" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE more explanation</strong>
   In a footer we have form input and other data , form input should be left and the remaining footer element should be right as image describe below
  <a href="https://i.stack.imgur.com/Awa3H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Awa3H.png" alt="enter image description here"></a></p>
  
  <p>I tried using <code>flex-box</code> for each <code>tr</code> but nothing worked. Can someone please help me? I just want the first element in the footer to align left and the rest to align right. Thanks, any help or suggestions will be helpful. Ignore <code>thead</code> and <code>tbody</code>, just consider <code>tfoot</code>.</p>