How to line up HTML input elements?

后端 未结 9 1408
滥情空心
滥情空心 2020-12-24 14:15

I am hoping to find a resource for lining up input elements in a HTML page. I find it difficult to get a select element and a text box to be the same width even when using t

9条回答
  •  感情败类
    2020-12-24 14:36

    Other than width, I'd be setting border and margin too, these may or may not influence your controls. Something like this may help:

    input, select {
        width: 100px;
        margin: 0px;
        border: 1px solid;
    }
    

    Ron has a good idea too.

提交回复
热议问题