How to align all fields as label width grows

后端 未结 5 2659
暖寄归人
暖寄归人 2021-02-20 18:05

I have a form where the labels are on the left and the fields on the right. This layout works great when the labels have small amounts of text. I can easily set a min-widt

5条回答
  •  别那么骄傲
    2021-02-20 18:26

    You're trying to create tables... without tables? Seems to me this is a situation where using tables is a perfectly fine solution. And I don't see what the 'tag-hell' should be. A tables needs a few more tags, sure, but so what? You could wrap everything in divs and simulate table cells with floats, but then you'll have a css-hell ;) .

提交回复
热议问题