When I resize my browser to a mobile size, I get a large amount of gap between both div's[Searcharea div and Steps div]. But, while in pc mode, there is no gap. I tried margin top and bottom but, I am not able to figure out the error. Please Help . Thanks. Below is the code.
HTML CODE:
<div class="searcharea col-md-12">
<div class="head col-md-12 col-xs-12">
<h1> Search for your own seat. </h2>
</div>
<div class="col-md-12 col-xs-12">
<div class="input-group custom-search-input">
<input type="text" class="form-control">
<span class="input-group-btn">
<button class="btn btn-danger" type="button">
<span class="glyphicon glyphicon-search"></span> CLICK
</button>
</span>
</div><!-- /input-group -->
</div>
</div> <!-- Search Bar ENDs -->
<div class="steps col-md-12 col-xs-12">
<div class="find col-md-12">
<h2 class="findhead">Finding Nearby ! </h2>
</div>
</div>
CSS:
.searcharea{
background-image: url(restback.jpg);
background-repeat: no-repeat;
background-size: 100%;
height: 600px;
margin-top: 0px;
}
.custom-search-input {
margin:5%;
width: 60%;
margin-left: 20%;
}
.head{
color: #ffffff;
margin-top: 15%;
text-align: center;
}
.steps {
background-color: lightblue;
height: 700px;
margin-top: 0px;
}
.find{
text-align: center;
}