I have a search form with an input field and a button. When I place the form in a standalone HTML file, the input and button span across the width of the div. However, when I embed it into the specific div I am working on, it shrinks to the left. Here is the code snippet:
<div class="col-sm-10" style="min-height:280px">
<div style="margin-bottom:18px; clear:both;" class="row">
<div class="col-lg-7" >
<form class="form-inline" role="form" method="post"
action="/grantaccess">
<div class="input-group">
<input name="searchName" type="email" class="form-control search-form" placeholder="Search">
<span class="input-group-btn">
<button type="submit" class="btn search-btn"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form></div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<div class="panel panel-default">
<div class="panel-heading">
RETRIEVED DETAILS
</div>
<div class="panel-body">
<div class="container">
How can I make the form span across the width of the div?