How to line up HTML input elements?

后端 未结 9 1413
滥情空心
滥情空心 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:48

    Do you start your CSS files with some base settings? It may be useful to turn padding and margin off on all elements. I haven't tested to see if this could be affecting select / input elements.

    Here's an example CSS Reset from Eric Meyer:

    http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

提交回复
热议问题