Здесь у меня очень сложная проблема.) Как сделать 3-ю ячейку с шириной 100% и сделать нижний ряд изолированным от первого ряда?
/* Table */
* {
box-sizing: border-box;
}
.table {
display: table;
width: 300px;
margin-bottom: 1rem;
border: 2px solid rgba(255, 0, 0, .40);
}
/* Grid */
.row {
display: table-row;
}
.cell {
display: table-cell;
}
/* Grid Width */
.cell-1 {
width: 50%;
}
.cell-2 {
width: 100%;
}
/* Decoration */
body {
font-family: monospace;
font-size: 15px;
}
.cell {
line-height: 3;
text-align: center;
background-color: rgba(255, 0, 0, .3);
border: 1px solid white;
}
<div class="table">
<div class="row">
<div class="cell cell-1">1</div>
<div class="cell cell-1">2</div>
</div>
<div class="row">
<div class="cell cell-3">3</div>
</div>
</div>