I have recently been working on a search bar that includes a Dropdown for Location and a Textbox for Search. Prior to implementing bootstrap, these elements were displayed in a single line. However, after applying bootstrap, they are now stacked vertically one below the other. I have tried adjusting various properties such as values, display, and position, but I can't seem to get them back in a single line. How can I solve this issue?
For reference, I have attached an image and the corresponding code below.
.homewall
{
height: 480px;
max-width: 100%;
}
.logo
{
font-size: 80px;
color: red;
position: absolute;
top: 10%;
background: white;
width: 110px;
height: 110px;
margin-left: 50%;
text-align: center;
margin-right: 50%;
border-radius: 50%;
}
.heading
{
color: white;
position: absolute;
top: 35%;
font-size: 36px;
font-weight: normal;
text-align: center;
margin-left: 25%;
}
.search
{
position: absolute;
top: 50%;
left: 30%;
text-align: center;
}
.locdd
{
height: 60px;
width: 245px;
color: gray;
border: none;
font-size: 16px;
margin: 21px;
}
.restInput
{
height: 60px;
width: 477px;
color: gray;
border: none;
font-size: 16px;
margin: 21px;
}
@media only screen and (max-width: 600px)
{
.restInput
{
height: 40px;
width: 245px;
color: gray;
border: none;
font-size: 16px;
opacity: 0.7;
float: left;
}
.homewall
{
max-width: 100%;
}
.logo
{
text-align: center;
font-size: 80px;
color: red;
background: white;
width: 115px;
height: 123px;
border-radius: 50%;
position: absolute;
top: 10%;
margin-left: 38%;
margin-right: 40%;
}
.locdd
{
position: relative;
top: -238px;
margin-left: 23.5%;
margin-right: 20%;
text-align: center;
}
}
<div class="container-fluid" style="padding: 0;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<img class="homewall" src="#" height="50%" width="100%"/>
<div class="logo">
Logo
</div>
<div class="heading">
Find the best Restaurants, Cafes and Bars
</div>
<div class="search">
<select class="locdd">
<option>Select Location</option>
<option value="Mum">Mumbai</option>
<option value="Del">Delhi</option>
<option value="Bglr">Bangalore</option>
</select>
<div style="position: relative;">
<span class="glyphicon glyphicon-search" style="position: absolute; font-size: 2rem; top: 40px; left: 35px"></span>
<input class="restInput" type="text" placeholder="Enter Restaurant or Food" style="padding-left: 50px;"/>
</div>
</div>
</div>
</div>
</div>