Bootstrap Input Group Field Not Sizing Correctly
I have a problem with Bootstrap. I'm kind of new to this framework, and I'm trying to get a searchbar with a
Solution 1:
What happened was you were wrapping everything in input-group, which basically controls the sizing of the object. I removed the wrapping around the search, but kept it for the category. You can see I set an inline css of 150px width (you can set this on the CSS side to better manage it)
<div class='col-sm-12 col-md-12 col-lg-12'>
<form method='get' action='search_results.php'>
<div class='input-group'>
<div class='input-group-btn' style="width:150px">
<select id='selector' class='selectpicker form-control' data-live-search='true'>
<option>Categories</option>
<option>Computers</option>
</select>
</div>
<input type='text' class='form-control' placeholder='Search' name='searchTerm'>
<div class='input-group-btn'>
<button class='btn btn-default'><i class='glyphicon glyphicon-search'></i></button>
</div>
</div>
</form>
</div>
Post a Comment for "Bootstrap Input Group Field Not Sizing Correctly"