I may not be a CSS expert, but I thought this would be simple. Unfortunately, my code isn't producing the desired outcome. Below is the code snippet:
<div class="form-group" style="float:right;">
<p><asp:Button ID="Submit" Text="Login" Visible="true" Enabled="True" CssClass="btn btn-green btn-lg" OnCommand="Login" runat="server" /></p>
<p><a href="/ForgotPW.aspx">Forgot your password?</a></p>
<p><asp:Label ID="SuccessMessage" Text="Thank you! Your request was successfully sent." ForeColor="Green" Visible="False" runat="server"></asp:Label></p>
</div>
Here's how it looks:
https://i.sstatic.net/TnAFT.png
The red arrow indicates that I want it aligned to the right side of the div like the other elements in there.
Here are some notes:
- Only margin-bottom: 15px; css is applied to "form-group".
- If I apply float:right directly to the button, it works, but then the "Forgot your password?" link moves up beside and left of the button and I can't get it below the button no matter what I try. Super frustrating!