Click here to Skip to main content
15,442,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Team

I have a form, but my input text there is no space in between and struggling to get this one to work. See my logic below and help me to improve it better, please mates.

What I have tried:

<form>
    <div class="input-group mb-2">
        <div class="input-group-prepend">

        </div>
        <label for="firstName">Name:</label>
        <div class="input-group col-md-6 col-md-offset-6 col-sm-6 col-xs-6">
            @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", type = "text", id = "firstname", autofocus = "autofocus", placeholder = "First Name", required = "required" })
            <br />
            @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", type = "text", id = "lastname", autofocus = "autofocus", placeholder = "Last Name", required = "required" })
        </div>
    </div>
</form>
Posted
Updated 16-Mar-20 21:53pm

1 solution

 
Share this answer
 
Comments
gcogco10 17-Mar-20 3:59am    
Thanks Richard for being kind and care, it does give me space im using  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900