I am trying to create something similar to a table with rows and cells, but I don't want to use rows and cells, I am currently using DIV elements and everything is going smooth until I try to adjust the width of the inner DIV elements to fill the width of their parent DIV (which would be the row) without having to do exact calculations for the percentage needed.
.container {
width: 100%;
display: flex;
border: 5px solid black;
}
.container > div {
width: inherit;
display: inline-flex;
border: 5px solid red;
}
.container > div > div {
border: 5px solid green;
height: 50px
}
<div class="container">
<div>
<div>
<span>TEST</span>
</div>
<div>
<span>TEST</span>
</div>
</div>
</div>