andre andre - 8 months ago 47
CSS Question

Is it possible to add a margin between each row in a bootsrap V4 striped table

Is it possible to separate each row using a margin, in a striped table in bootstrap v4. I want each row to spaced out a little to be more readable.

<table class="table table-striped">
<th>First Name</th>
<th>Last Name</th>
<th scope="row">1</th>
<th scope="row">2</th>
<th scope="row">3</th>
<td>the Bird</td>

Answer Source

Table rows does not have margin values. You may consider to use padding values to td.

For reference :

.table td{
  padding-bottom: 10px;