Bootstrap snippet: Login form with background image

designed to help people of all skill levels - designer or developer, huge nerd or early beginner.
copy and paste the code. Use it as a complete kit or use it to start something more complex.
tags: login,form,image



<div class="container bootstrap snippet"> <div class="row"> <div class="col-md-4 col-md-offset-7"> <div class="panel panel-default"> <div class="panel-heading"> <strong class="">Login</strong> </div> <div class="panel-body"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-3 control-label">Email</label> <div class="col-sm-9"> <input type="email" class="form-control" id="inputEmail3" placeholder="Email" required=""> </div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-3 control-label">Password</label> <div class="col-sm-9"> <input type="password" class="form-control" id="inputPassword3" placeholder="Password" required=""> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label class=""> <input type="checkbox" class="">Remember me</label> </div> </div> </div> <div class="form-group last"> <div class="col-sm-offset-3 col-sm-9"> <button type="submit" class="btn btn-success btn-sm">Sign in</button> <button type="reset" class="btn btn-default btn-sm">Reset</button> </div> </div> </form> </div> <div class="panel-footer">Not Registered? <a href="#" class="">Register here</a> </div> </div> </div> </div> </div>
/* CSS used here will be applied after bootstrap.css */ body { background: url('http://www.bootdey.com/img/Content/bg_element.jpg') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } .panel-default { opacity: 0.9; margin-top:30px; } .form-group.last { margin-bottom:0px; }
Dey-Dey

Login form with background image

Dey-Dey
  Jun 16th 2014, 09:54
2.7K Views