How to get equal width of input and select fields

后端 未结 4 2028
梦谈多话
梦谈多话 2020-11-30 18:03

On the form, I have one select and two input fields. These elements are vertically aligned. Unfortunately, I can\'t get equal width of these elements.

Here\'s my co

4条回答
  •  [愿得一人]
    2020-11-30 18:15

    I tried Gaby's answer (+1) above but it only partially solved my problem. Instead I used the following CSS, where content-box was changed to border-box:

    input, select {
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
    }
    

提交回复
热议问题