Arranging fieldset elements like a typical table-design

后端 未结 2 2026
余生分开走
余生分开走 2020-12-19 22:45

I\'m trying to arrange the titles for 3 fieldset elements the same way a typical table looks, but I can\'t get it the way I want. This comes pretty close, however...

2条回答
  •  感情败类
    2020-12-19 23:00

    Like this

        .divTable {
          display: table;
          width: 50%;
        }
        .divRow {
          display: table-row;
        }
        .cellOne,
        .cellTwo {
          display: table-cell;
          padding: 20px;
          width: 30%;
        }
    File:

提交回复
热议问题