html - Bootstrap label and input always in one line -


when i'm reducing browser width: <select> input shifts onto new line.

what want: if browser width not enough space keep label , input on 1 line, bootstrap should shift both label , input onto new line (i.e. keep them together).

example here: http://codepen.io/anon/pen/omzjpw

please update html structure this

<div class="row">       <div class="form-inline col-sm-6" style="overflow-x: hidden">         <div class="row">           <div class="col-sm-6">             <label class="control-label">{{ 'commonlabelname' | translate }}:</label>           </div>           <div class="col-sm-6">             <div class="btn-group" ng-class="{ 'has-error': neweventform.name.$invalid && neweventform.name.$dirty }">               <input required ng-maxlength="100" name="name" class="form-control" ng-model="vm.newevent.name" />             </div>           </div>         </div>       </div>        <div class="form-inline col-sm-6">         <div class="row">           <div class="col-sm-6">             <label class="control-label">{{ 'commonlabelaction' | translate }}:</label>           </div>           <div class="col-sm-6">             <div class="btn-group" style="width: 70%" ng-class="{ 'has-error': neweventform.action.$invalid && neweventform.action.$dirty }">               <select name="action" required class="form-control" style="width: 100%" ng-model="vm.newevent.actionid" ng-options="action.id action.name action in vm.actionlist"></select>              </div>           </div>         </div>       </div> 

demo: http://codepen.io/anon/pen/bemgay


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -