Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 474.1k

Making your input text fit right size on a form?

Mar 16 2020 2:24 AM
Hi Team
 
I have this logic on my view, the size is too big and want way to make my text input fit well for Title field a form.Please assist me to make this very well on my form.
 
  1. <div class="register-box">  
  2.     <div class="register-logo">  
  3.   
  4.     </div>  
  5. </div>  
  6. <div class="card">  
  7.     <div class="card-body register-card-body">  
  8.         <center>  
  9.             <img src="~/Images/eNtsa.png" />  
  10.         </center>  
  11.         <center>  
  12.             <p><b>Training Course Registration:Motion MasterClass</b></p>  
  13.         </center>  
  14.   
  15.         @using (Html.BeginForm("editRegForm""Home", FormMethod.Post, new { @role = "form" }))  
  16.         {  
  17.             @Html.AntiForgeryToken()  
  18.             <div class="input-group-mb-2">  
  19.                 @Html.TextBoxFor(m=>m.Title, new {@class = "form-control", type = "text", id = "title", autofocus = "autofocus", placeholder = "Title", required = "required"})  
  20.                     <div class="input-group-text">  
  21.                           
  22.                     </div>  
  23.                   
  24.             </div>  
  25.         }  
  26.   
  27.     </div>  
  28. </div>  
 

Answers (1)