Is it possible with flex align the blocks in a row so that they fill the entire space in width, while the blocks would be different widths depending on the content, i.e. behaved like table cells?
1 answer
If you understood correctly
*{ box-sizing:border-box; } .fake-table{ display:flex; } .fake-table__cell{ flex:1 1 auto; padding:10px; border:1px solid; background-color:#cda; } <div class="fake-table"> <div class="fake-table__cell">asdasdasdas dasdasdasdasd asd asdsadasdasdas </div> <div class="fake-table__cell">asdasd a asda</div> </div> - Cool ;) What you need, thanks! - Anatoly Shevelev
|