Bootstrap 3.0: How to have text and input on same line?

后端 未结 10 948
忘掉有多难
忘掉有多难 2021-01-30 10:10

I\'m currently switching my website over to Bootstrap 3.0. I\'m having an issue with form input and text formatting. What worked in Bootstrap 2 does not work in Bootstrap 3.

10条回答
  •  长情又很酷
    2021-01-30 10:46

    In Bootstrap 4 for Horizontal element you can use .row with .col-*-* classes to specify the width of your labels and controls. see this link.

    And if you want to display a series of labels, form controls, and buttons on a single horizontal row you can use .form-inline for more info this link

提交回复
热议问题