Struggling to align my buttons next to the inputs in my project, particularly due to my inexperience with bootstrap CSS and CSS in general. Could someone please point me in the right direction?
Unfortunately, my Search and New buttons are not aligning as intended. Any assistance will be highly appreciated.
What I've tried so far: https://i.sstatic.net/QvaxH.png
Desired outcome: https://i.sstatic.net/vXKkJ.png
Here's the HTML code:
<div class="row">
<div class="col-md-1"></div>
<div class="col-xs-2">
<label for="ItemID">ITEM ID</label>
<input class="form-control" type="text" name="ItemID" id="ItemID" />
</div>
<div class="col-xs-1">
<input class="btn btn-default" type="button" name="Search" id="Search" value="Search">
</div>
<div class="col-xs-2">
<label for="Qty">QTY</label>
<select name="Qty" id="Qty" class="form-control">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-1"></div>
<div class="col-xs-4">
<label for="Dealers"></label>
<select name="Dealers" id="Dealers" class="form-control">
<option value="" selected></option>
<option value="1">1</option>
</select>
</div>
<input class="btn btn-default" type="button" name="New" value="NEW">
</div>
<div class="row">
<div class="col-md-1"></div>
<input class="btn btn-default" type="button" name="Report" value="REPORT">
<input class="btn btn-default" type="button" name="PrintLabels" value="PRINT LABELS">
<input class="btn btn-default" type="button" name="LogItIn" value="LOG IT IN">
<input class="btn btn-default" type="button" name="CompleteIt" value="COMPLETE IT">
<input class="btn btn-default" type="button" name="Exit" value="EXIT">
</div>
CSS snippet:
#ItemID, #Search { display: inline-block; }