Horizontal Login Form

In this example below you will see how to do a Horizontal Login Form with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by zax75, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright zax75 ©
  • HTML
  • CSS
  • JavaScript
        <form class="well form-horizontal" method="post" role="form" novalidate="novalidate">
  <fieldset>
    <legend>Login</legend>
    <div class="form-group">
      <label class="control-label col-sm-2" for="Username">Username</label>
      <div class="col-sm-10">
        <input class="form-control" id="Username" name="Username" type="text" value="">
        <span class="field-validation-valid" data-valmsg-for="Username" data-valmsg-replace="true"></span>
      </div>
    </div>
    <div class="form-group">
      <label class="control-label col-sm-2" for="Password">Password</label>
      <div class="col-sm-10">
        <input class="form-control" id="Password" name="Password" type="password">
        <span class="field-validation-valid" data-valmsg-for="Password" data-valmsg-replace="true"></span>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <div class="checkbox">
          <label>
              <input id="RememberMe" name="RememberMe" type="checkbox" value="true">
              <label for="RememberMe" style="padding-left:0;">Ricordami?</label>
            </label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-1">
        <input type="submit" value="Entra" class="btn btn-primary">
      </div>
      <div class="col-sm-9">
      </div>
    </div>
  </fieldset>
</form>
    

/*Downloaded from https://www.codeseek.co/zax75/horizontal-login-form-rLNaRp */
        
    

/*Downloaded from https://www.codeseek.co/zax75/horizontal-login-form-rLNaRp */
        
    

Comments