I made a switch from an old table to a new one constructed using Divs, and everything seems to be working fine except for one issue. I am trying to create a header that spans the entire width of the table without having multiple cells in the heading like in the table-heading css class. Unfortunately, I have been unable to figure out how to achieve this. I attempted to use colspan, but it didn't work since divtables do not support this feature.
Below is a brief example of my table structure:
.divTableCell{
border: 1px solid #999999;
display: table-cell;
padding: 3px 10px;
background-color: #ffffff;
width: 50%;
}
.divTableRow {
display: table-row;
width: 100%;
}
<div class="divTableRow">
<div class="divTableCell">1</div>
<div class="divTableCell">2</div>
<div class="divTableCell">3</div>
</div>
Every attempt I've made to create the header using the Table-heading class has resulted in it only spanning over the left table cell.
If anyone could provide assistance with this, it would be greatly appreciated! Thank you.