Home > database >  Add border at the end of bootstrap table
Add border at the end of bootstrap table

Time:02-23

How can I add an a border at the end of the bootstrap 4 table? Similar like it has added a border on the top.

Bootstrap table: https://jsfiddle.net/mkdeveloper2021/Lrf4gemq/1/

Code:

<table >
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">First</th>
      <th scope="col">Last</th>
      <th scope="col">Handle</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <td>Mark</td>
      <td>Otto</td>
      <td>@mdo</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <td>Jacob</td>
      <td>Thornton</td>
      <td>@fat</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <td>Larry</td>
      <td>the Bird</td>
      <td>@twitter</td>
    </tr>
  </tbody>
</table>

CodePudding user response:

Add the border-bottom class to your table: <table >

jsFiddle Example

  • Related