Is there a method to add some spacing between cells in a table?
I have a custom table implemented using the following structure:
<div class="table">
<div class="tr">
<div class="td">asdf</div>
<div class="td">asdf</div>
<div class="td">asdf</div>
</div>
</div>
Here is the CSS:
.table {
display: table;
width: 100%;
}
.tr {
display: table-row;
}
.td {
display: table-cell;
}
Although this is not the exact code I am using, my implementation follows a similar structure. I have managed to create a visual representation like this:
Currently, there is spacing between the cells achieved by applying the following styles to the table
div:
border-collapse:separate;
border-spacing: 5px;
However, this spacing extends to the very edges. I am looking to add spacing only between cell 1-2 and cell 2-3, without affecting the other borders. How can I achieve this without overlapping the existing borders?