"Sign in Panel"
Bootstrap 3.2.0 Snippet by jordi

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container" style="margin-top:40px"> <div class="row"> <div class="col-sm-6 col-md-4 col-md-offset-4"> <div class="panel panel-default"> <div class="panel-heading"> <strong> Sign in to continue</strong> </div> <div class="panel-body"> <form role="form" action="#" method="POST"> <fieldset> <div class="row"> <div class="center-block"> <img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120" alt=""> </div> </div> <div class="row"> <div class="col-sm-12 col-md-10 col-md-offset-1 "> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"> <i class="glyphicon glyphicon-user"></i> </span> <input class="form-control" placeholder="Username" name="loginname" type="text" autofocus> </div> </div> <div class="form-group"> <div class="input-group"> <span class="input-group-addon"> <i class="glyphicon glyphicon-lock"></i> </span> <input class="form-control" placeholder="Password" name="password" type="password" value=""> </div> </div> <div class="form-group"> <input type="submit" class="btn btn-lg btn-primary btn-block" value="Sign in"> </div> </div> </div> </fieldset> </form> </div> <div class="panel-footer "> Don't have an account! <a href="#" onClick=""> Sign Up Here </a> </div> </div> </div> </div> </div>
.panel-heading { padding: 5px 15px; } .panel-footer { padding: 1px 15px; color: #A0A0A0; } .profile-img { width: 96px; height: 96px; margin: 0 auto 10px; display: block; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; }

Related: See More


Questions / Comments:

Thanks for this snippet it works great, I've made some small changes but it was almost perfect for my project :)

cichy () - 9 years ago - Reply 0


Hello,
Put this in your <head> or something:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn...">

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn...">

<script src="https://maxcdn.bootstrapcdn..."></script>

Then it will work..

Thomas () - 9 years ago - Reply 0


same here

aghogho bernard () - 9 years ago - Reply 0


I tried using these codes however are not going as planned.
already imported the css and javascript bootstrap however still gets all misaligned.

Rafael Acioly () - 10 years ago - Reply 0


Could you post a screenshot please?

maxsurguy () - 9 years ago - Reply 0


your login page is not aligned properly

Sagar Salal () - 7 years ago - Reply 0