I am currently working on designing a login form and I want to position the checkbox "Remember me" and the link "Password?" next to each other rather than below each other. Here is the current situation:
https://i.sstatic.net/eBr3u.png
Here is the code snippet:
.form-group {
display: block !important;
margin: 0 auto !important;
max-width: 75% !important;
margin-bottom: 5% !important;
}
<div class="form-group">
<div class="checkbox">
<label asp-for="Input.RememberMe">
<input asp-for="Input.RememberMe" />
@Html.DisplayNameFor(m => m.Input.RememberMe)
</label>
</div>
<p>
<a id="forgot-password" asp-page="./ForgotPassword">Password?</a>
</p>
</div>
Any suggestions on how I can achieve this alignment?
Thank you