I'm trying to create a very simple form with Bootstrap consisting of just a text bar and a browse button. But even though they are both in .form-group
, text bar has a width
of 100% and the button is down, instead of appearing to the side, just like I needed.
Here's an example:
<form role="form">
<div class="form-group">
<label for="searchBar">Procurar:</label>
<input type="text" class="form-control pull-left" id="searchBar" placeholder="Procurar por:">
<button type="submit" class="btn btn-info pull-right" value="Procurar"> <span class="glyphicon glyphicon-search"></span>
</button>
</div>
</form>