Hi team
Who can help me, i want first my register-box to have enough size to fit for my textbox. Also how can i create my input-group to be horizontal or align right? See my logic for more details, basically the form looks like this on UI.
I want that textbox for First name and lastname be horizontal to each other with enough fit. I am struggling to achieve please assist mates.
- @using eNtsaRegistrationTraining.Models
- @model EditTrainingRegFormViewModel
-
- @{
- ViewBag.Ttile = "Dashboard";
- Layout = "~/Views/Shared/_HomeLayout.cshtml";
- }
- <center>
- <div class="register-box ">
- <div class="register-logo">
-
- </div>
-
- <div class="card">
- <div class="card-body register-card-body">
- <center>
- <img src="~/Images/eNtsa.png" />
- </center>
- <center>
- <p><b>Training Course Registration:Motion MasterClass</b></p>
- <hr />
- <p>Course date: 25-27 February 2020</p>
- <hr />
- <p>
- Note:Please note your registration is submit approval as seats for this course is limited. Once your registration is confirmed, you will receive a quote for subject to your confirmation
- followed by an invoice.
- </p>
- </center>
- <hr />
- @using (Html.BeginForm("editRegForm", "Home", FormMethod.Post, new { @role = "form" }))
- {
- @Html.AntiForgeryToken()
- <div class="row">
- <label for="Title"> Title: </label>
- <div class="input-group col-md-6 col-md-offset-8 col-sm-10 col-xs-10">
- <div class="input-group pull-left">
- @Html.TextBoxFor(m => m.Title, new { @class = "form-control", type = "text", id = "title", autofocus = "autofocus", placeholder = "Title", required = "required" })
- <div class="input-group-append">
- <div class="input-group-text">
- </div>
- </div>
- </div>
- </div>
- </div>
- <hr />
- <div class="row">
- <label for="Name">Name:</label>
- <div class="input-group col-md-6 col-md-offset-8 col-sm-10 col-xs-10">
- <div class="input-group pull-left">
- @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", type = "text", id = "firstname", autofocus = "autofocus", placeholder = "First Name", required = "required" })
- <div class="input-group-append">
- <div class="input-group-text">
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <hr/>
-
- <div class="row">
- <label for="LastName">LastName:</label>
- <div class="input-group col-md-6 col-md-offset-8 col-sm-10 col-xs-10">
- <div class="input-group pull-left">
- @Html.TextBoxFor(m=>m.LastName, new {@class = "form-control", type="text", id="lastname", autofocus = "autofocus", placeholder = "Last Name", required = "required"})
- <div class="input-group-append">
- <div class="input-group-text">
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- }
- </div>
- </div>
- </div>
- </center>
-