I am attempting to align the following button and text box side by side, with the button on the left and the text box on the right. I have tried using span and margin properties, but currently the text box is displaying below the button. Can you suggest a different approach to accomplish this layout?
<div style="display: flex;">
<input type="submit" id="Connect" style="width: 150px;" class="btn action-but" />
<div class="form-group" style="margin-left: 10px;">
@Html.LabelFor(model => model.Service, new { @class = "col-md-2" })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Service, new { @style = "width: 700px;" })
@Html.ValidationMessageFor(model => model.Service)
</div>
</div>
</div>