In my form, I have utilized the .form-control
classes for the form elements. To arrange two inputs side by side, I am applying .col-md-6
on each of these inputs. However, the width generated by .col-md-6
is being overridden by the .form-control
class.
Is there a way to make sure that it uses the 50% width defined by .col-md-6
and not the 100% width from the .form-control
class?
Modified HTML
<form id="user-edit-account" data-toggle="validator" class="form-horizontal">
<h4>Account Settings</h4>
<div class="form-group">
<label for="user-profile-name" class="control-label col-sm-4">Location*</label>
<div class="col-sm-8">
<select id="profile-country" class="form-control col-md-6" name="country">
<option value="">Please select a destination</option>
<option value="India">India</option>
<option value="China">China</option>
<option value="Asia">Asia</option>
</select>
<input type="text" class="form-control col-md-6" id="profile-region" placeholder="City" value="">
</div>
</div>
</form