html form - make inputs appear on the same line

前端 未结 7 2182
臣服心动
臣服心动 2021-01-03 19:17

I am struggling to make two html form inputs (first and last name) appear on the same line side by side. I have tried using float, but that seems to make the rest of the inp

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 20:04

    Try just putting a div around the first and last name inputs/labels like this:

    Look at the fiddle here: http://jsfiddle.net/XAkXg/

提交回复
热议问题