Here is the html code I am currently working with:
<label>Search:</label>
<input type="text" id="list_search" class="form-control col-8">
<button class="btn btn-info col-2">Search</button>
It's interesting to note that my input field spans 8 columns while my button only spans 2. However, despite this configuration, I am encountering an alignment issue as shown in the screenshot below:
https://i.sstatic.net/i8n0s.png
Shouldn't they be perfectly aligned horizontally? I should ideally have a layout similar to the one depicted here:
https://i.sstatic.net/sWwDQ.png
To achieve proper alignment, I had to resort to using <div class="row">
, which unfortunately altered the margins (notice how the label is affected).