How to style and align forms without tables?

前端 未结 11 2446
梦如初夏
梦如初夏 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条回答
  •  鱼传尺愫
    2020-12-05 05:05

    I had this problem too, but with the cocidil that I had a menu in the left (also with float:left in it).

    So. My solution was: html

    css

    .new {
        display:block;
    }
    .newlabel {
        min-width: 200px;
        float: left;
    }
    

    I think, it would work in the form class too, but in reality I had more forms in the 'new' class.

提交回复
热议问题