I did this by creating a couple of additional form classes and use them depending on the size I need.
This is my css:
.form-small .control-label { width: 100px; } .form-small .controls { margin-left: 120px; } .form-medium .control-label { width: 180px; } .form-medium .controls { margin-left: 200px; } .form-xlarge .control-label { width: 240px; } .form-xlarge .controls { margin-left: 260px; }
So, if I need a little label:
<form class="form-horizontal form-small"> </form>
Of course, you can customize your own .control-label and .controls to suit your needs.
Hope this helps!
source share