CSS for dynamic form labels width

后端 未结 3 1089
死守一世寂寞
死守一世寂寞 2021-02-20 06:40

I\'m currently working on refactoring one of our Form Controller so that we can use it for a public facing site. Currently it\'s generating a table layout for the forms, but I

3条回答
  •  时光取名叫无心
    2021-02-20 07:26

    You can set the css to display: table-cell and the containing

    to display: table-row. This will mimic the behavior of using a table without actually using a .

    This will look great in any recent browser (Firefox, Chrome, IE8+). In IE7, the textboxes won't be aligned correctly.

    提交回复
    热议问题