Click here to Skip to main content
15,566,615 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:

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

        <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" })
Updated 16-Mar-20 22:53pm

1 solution

Share this answer
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