twitter bootstrap - Scope of css .form-group-sm -
why .form-group-sm
reduces .form-control
not .control-label
except when inside .form-horizontal
? forces custom css or use of <small>
tag <label>
tag. design or missing?
from bootstrap.css:
.form-group-sm .form-control { ... } .form-horizontal .form-group-sm .control-form { ... }
sample code:
<form class="form-horizontal"> <div class="form-group form-group-sm"> <label class="col-sm-2 control-label" for="formgroupinputsmall">small label</label> <div class="col-sm-10"> <input class="form-control" type="text" id="formgroupinputsmall" placeholder="small input"> </div> </div> </form>
Comments
Post a Comment