Label on the left side instead above an input field

前端 未结 15 910
太阳男子
太阳男子 2020-12-02 09:44

I would like to have the labels not above the input field, but on the left side.

15条回答
  •  广开言路
    2020-12-02 10:18

    I think this is what you want, from the bootstrap documentation "Horizontal form Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal to the form. Doing so changes .form-groups to behave as grid rows, so no need for .row". So:

    
    

    Fiddle: http://jsfiddle.net/beewayne/B9jj2/29/

提交回复
热议问题