HTML form with side by side input fields

后端 未结 6 1667
离开以前
离开以前 2021-02-05 10:52

I have a html form that is basically vertical but i really have no idea how to make two text fields on the same line. For example the following form below i want the First and L

6条回答
  •  再見小時候
    2021-02-05 11:33

    The default display style for a div is "block." This means that each new div will be under the prior one.

    You can:

    Override the flow style by using float as @Sarfraz suggests.

    or

    Change your html to use something other than divs for elements you want on the same line. I suggest that you just leave out the divs for the "last_name" field

    ... rest is same

提交回复
热议问题