Is there a way to align my button with my text boxes so that the right sides form a straight line? I've been struggling to achieve this without using margin-left (as it only works for one screen size).
https://i.sstatic.net/RrEYV.png
I attempted to use some CSS within style tags to align them, but that approach didn't work.
The btn pull-right class also didn't have the desired effect.
<div class="form-group">
<div class="row">
<div class="col-sm-12">
@Html.LabelFor(model => model.RedemptionDate, htmlAttributes: new { @class = "control-label col-md-7" })
<input class="btn btn-primary btn-sm" id="btnSpot" type="button" onclick="GetSpotDate(event)" style="margin-bottom:10px;margin-left:10px" <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="790f18150c1c4439310d1415573d100a091518003718141c4a5a4646">[email protected]</a>(model => model.Spot)>
</div>
</div>
</div>
Currently, the button appears as shown above. Ideally, all three elements would align on their right side.