I'm trying to create a simple table with 3 columns: the first/last should take the exact width of their children and the middle one should stretch and fill the rest of it.
.table {
display: table;
width: 100%;
}
I've tried using both <table>
element, as well as flex
- but not sure how to achieve this.
I can do it per line using flex, but then the first/last columns won't be aligned across rows. In addition, I don't want to set a fixed width for the first/last column.