Inline Bootstrap form layout with labels above inputs

后端 未结 6 1059
没有蜡笔的小新
没有蜡笔的小新 2021-02-03 19:14

I\'d like to create a form with the following layout using Bootstrap 3:

\"enter

I

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-03 19:49

    Putting

    between the and the worked for me. I tried a bunch of the above ideas with no luck. This is with Bootstrap 3.3.7.

    So

     
    

    I also included "pull-right" as a class (i.e. class="control-label pull-right" and class="form-control pull-right" to get the label and the input on the right-hand side of the page.

提交回复
热议问题