Is there a way to ensure that all the information remains within the table without using the
style="overflow:scroll"
property?
Here is an image of the table overflowing to the right in the middle of the LATEST DATE CHECKED
column.
Here is the code snippet:
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 0 solid rgba(0, 0, 0, 0.125);
border-radius: 4px;
}
table {
display: table;
border-collapse: separate;
box-sizing: border-box;
text-indent: initial;
border-spacing: 2px;
border-color: grey;
}
<div class="nk-block">
<div class="card card-bordered">
<table class="table table-voucher">
<thead class="tb-voucher-head">
<tr class="tb-voucher-title">
<th class="tb-voucher-date tb-col-md">
<span>DATE</span>
</th>
<th class="tb-voucher-seen tb-col-md">
<span>LATEST DATE CHECKED</span>
</th>
<th class="tb-voucher-status tb-col-md ">
<span>STATUS</span>
</th>
</tr>
</thead>
<tbody class="tb-voucher-body" id="voucher_content"></tbody>
</table>
</div>
</div>