Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Add bottom border, after adding inner borders, to Table CSS

Hello I want to add borders inside a table, and in the bottom of the table. With what i found, i was able to add the inner borders, however, i am getting trouble in adding also the bottom border. How can i do it ?

My table

  <table class="table">
  <thead>
    <tr>
    
      <th>Produto</th>
      <th>Quantidade</th>
      <th>Valor</th>
    </tr>
  </thead>
  <tbody>
    <tr v-for="c in compras">
      
      <td>{{c.nome}}</td>
      <td>{{c.qtd}}</td>
      <td>{{c.valor}}</td>
    </tr>
  </tbody>
</table>

And the Css i have, that managed to fill the inner borders

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

table {
    border-collapse: collapse;
    border-style: hidden;
}

table td, table th {
    border: 1px solid black;
    border-bottom: 1px solid black;
}

Thank You

>Solution :

table {
    border: 1px solid black;
    border-bottom: 1px solid black;
}

exactly the same which you used for the inners

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading