Layout a flex box similar to a table?

后端 未结 3 1759
萌比男神i
萌比男神i 2020-12-09 03:37

I\'m working with a framework developed in-house which depends on a certain structure to our HTML. And one of the tricky things is that each row needs its own container with

3条回答
  •  旧巷少年郎
    2020-12-09 04:42

    header, .row {
      display: flex;  /* aligns all child elements (flex items) in a row */
    }
    
    .col {
      flex: 1;        /* distributes space on the line equally among items */
    }
    Column A
    Column B
    Column C
    1
    2
    3

提交回复
热议问题