Bootstrap 2.3.2:
<form class="form-horizontal"> <fieldset> <div class="control-group"> <label class="control-label">Select:</label> <div class="controls"> <select> <option value="1">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option> </select> </div> </div> </fieldset> </form>
Bootstrap 3.x:
<form role="form" class="form-horizontal"> <fieldset> <div class="form-group"> <label class="col-sm-2 control-label">Select:</label> <div class="col-sm-3"> <select class="form-control"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </div> </div> </fieldset> </form>
col-sm-2
and col-sm-3
define the width that you can change accordingly. Take a look at the Grid system on the Bootstrap website to see various options.
Hope this helps
source share