Here is the code snippet I am working with:
<div class="row">
<div class="col-xs-8 col-xs-offset-2">
<div class="input-group">
<div class="input-group-btn search-panel">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span id="search_concept">Search by</span> <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#hcn">HCN</a></li>
<li><a href="#casenote">Casenote</a></li>
</ul>
</div>
<input type="text" class="form-control" name="x" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
</div>
This code creates the following layout:
https://i.sstatic.net/79gyY.png
I am struggling to center the dropdown, textbox, and button so they are all aligned and close to each other. Can anyone provide guidance on how to achieve this?