HTML form with side by side input fields

后端 未结 6 1678
离开以前
离开以前 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:27

    I would go with Larry K's solution, but you can also set the display to inline-block if you want the benefits of both block and inline elements.

    You can do this in the div tag by inserting:

    style="display:inline-block;"
    

    Or in a CSS stylesheet with this method:

    div { display:inline-block; }
    

    Hope it helps, but as earlier mentioned, I would personally go for Larry K's solution ;-)

提交回复
热议问题