Input Tag Helper Alignment when Alert Displays

19 views Asked by At

Here is my cshtml. My input tag helpers line up correctly, but upon validation they move. I've tried left aligning my alert but that did not work.

<div class="row">
                 <div class="col-md-10">                    
                      <label style="display: inline-block; width: 150px; text-align: right">Last Name:</label>
                         <input asp-for="NewUser.LastName"/>
                         <label class="alert-danger">@ViewData["LastNameErrorMessage"]</label>
                 </div>
            </div>   

enter image description hereenter image description here

0

There are 0 answers