Is it feasible to achieve a table layout resembling the one depicted below using only div tags and CSS?
_________________________________________________
| | | |
| | | |
| | | |
|___________|_______________________|____________|
| | | | |
| | | | |
| | | | |
|______|_______|________________|________________|
| | | |
| | | |
| | | |
|___________|_______________________|____________|
The challenge lies in creating the second row with 4 cells, as it affects the widths of the first row with 3 cells. Below is the HTML code:
<div class="box-table" style="width: 800px">
<div class="box-row">
<div class="box" style="width: 20%"></div>
<div class="box" style="width: 45%"></div>
<div class="box" style="width: 35%"></div>
</div>
<div class="box-row">
<div class="box" style="width: 15%">></div>
<div class="box" style="width: 15%">></div>
<div class="box" style="width: 40%">></div>
<div class="box" style="width: 30%">></div>
</div>
<div class="box-row">
<div class="box" style="width: 20%"></div>
<div class="box" style="width: 45%"></div>
<div class="box" style="width: 35%"></div>
</div>
</div>
Here is the CSS code being used:
.box-table {
display: table;
border-collapse: collapse;
}
.box-table .box-row {
display: table-row;
}
.box-table .box {
display: table-cell;
text-align: left;
vertical-align: top;
padding: 5px;
}
Can this be achieved or should each row be transformed into a separate table? Thank you for your assistance.