How to switch from table to div for FORM layout?

前端 未结 5 1109
栀梦
栀梦 2020-12-23 15:46

I\'m noticing most folks are talking about using DIVs and CSS for label, textbox pairs. How would one convert a table such as:

5条回答
  •  时光取名叫无心
    2020-12-23 16:17

    Consider this article at Woork titled Clean and Pure CSS Form Design

    I've implemented this style, including the fieldset and tweaked all the styles appropriately for the look/feel that was required.

    Consider using to inherit the style of the label via CSS instead of asp:label. Alternatively you could put your asp:label within label tags. Since asp:label emits , that would simply result in a set of .

    alt text

提交回复
热议问题