CSS for dynamic form labels width

后端 未结 3 1132
死守一世寂寞
死守一世寂寞 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:20

    To my knowlegde forms always occupy 100% of the available width. You could use that.

    If it's allowed to fill up the whole width of the provided container for this form, then this seems a valid answer:

    The sample fiddle.

    The minor disadvantage in this case is to choose the ratio between the width of the labels and the inputs.

提交回复
热议问题