I'd like to have a div
with display: table-cell
that has a percentage width set. display: table-cell
is my best option I need several side by side div
s to be equal height.
After researching, I properly set the parent to display: table; table-layout: fixed; width: 100%
as found in many other threads, but the table-cell
still fills the parent.
.table-wrapper {
display: table;
table-layout: fixed;
width: 100%;
}
.table-cell {
display: table-cell;
width: 25%;
overflow: hidden !important;
border: 1px solid black;
}
<div class="table-wrapper">
<div class="table-cell">
Should be 25%, but it fills .table-wrapper
</div>
</div>
Is this not possible?