3
I am trying to create a very simple form with Bootstrap which consists of only one text bar and a search button. But, although they are both in the same .form-group
, to text bar has a width
100% and the button is down instead of next to it, as I needed.
There is 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>
Thank you, that’s exactly what I wanted :)
– blackblather