I am trying to achieve a form layout where two form-group elements are side by side on a single line. I have tried styling with the following properties; display:inline, display:flex, etc however none of these have worked.
Here's a snippet of the form-group elements that I want to be side by side:
<div class="form-group">
<label for="entercomments" class="col-sm-2 control-label">From Date</label>
<div class="col-sm-10">
<div class="input-group fromdate inline" data-date-format="yyyy-mm-dd" style="width:250px">
<input type="text" class="form-control fromdate" placeholder="dd-mmm-yyyy" id="FromDate" runat="server" data-date-container="#formDiv" />
<div class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></div>
</div>
</div>
</div>
<div class="form-group">
<label for="entercomments" class="col-sm-2 control-label">To Date</label>
<div class="col-sm-10">
<div class="input-group todate inline" data-date-format="yyyy-mm-dd" style="width:250px">
<input type="text" class="form-control todate" placeholder="dd-mmm-yyyy" id="ToDate" runat="server" data-date-container="#formDiv" />
<div class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></div>
</div>
</div>
</div>