How to style and align forms without tables?

前端 未结 11 2459
梦如初夏
梦如初夏 2020-12-05 04:27

I\'ve gotten used to using

s for aligning my form fields perfectly. This is how I commonly write my forms:

11条回答
  •  旧时难觅i
    2020-12-05 05:07

    There's no one-size-fits-all for this. The table example you used can be improved on, though:

Not too sure about the error part; I think it makes more sense putting it next to the input than having a separate column for it.

提交回复
热议问题