I am in the process of creating a navbar that includes select, input, and button elements. Below is the code I have written:
<nav class="navbar sticky-top navbar-light p-0">
<div class="collapse navbar-collapse search-bar show p-4" id="navbarSupportedContent">
<div class="col-md-8 mx-auto">
<form>
<div class="row">
<div class="col-md-3 pr-md-0">
<select class="form-control form-style-w3layout"
style="background: #011144; color: #fff" id="exampleFormControlSelect1">
<option>Deutsch - English</option>
<option>English- Deutsch</option>
</select>
</div>
<div class="form-row col-md-9 pl-md-0">
<div class="col-xs-10 col-md-10 pr-md-0">
<input type="text" class="form-control form-style-w3layout"
id="autocomplete" placeholder="Search Deutsch" required>
</div>
<div class="col-xs-2 col-md-2 pl-md-0">
<button class="form-control form-style-w3layout-btn"><span class="fa fa-search"></span>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
Here is the output image:
https://i.sstatic.net/LgIbj.png
However, when viewing on a mobile device, there are issues. The input and button elements appear on separate rows and there is no margin between the select and input elements.
Below is an image showing the mobile output: