CSS for dynamic form labels width

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

    Well, here's a solution that is a bit unconventional, but I think the simplicity should work for all browsers.

    The sample fiddle.

    Accessibility doesn't seem to be a problem, for both keyboard and mouse control act as whished. The main disadvantage of course is that this page does not render well if CSS is turned off. Are there somewhere statistics about that? And also don't I know how screen readers will react to this wantonness.

提交回复
热议问题