Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Bootstrap Sign in Form with Image"
Bootstrap 4.0.0 Snippet by
yoatthemes
4.0.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
6.1K
 
9 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Sign in Form with Image</title> <link href="https://fonts.googleapis.com/css?family=Roboto|Open+Sans|Francois+One:400,700" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="login-form"> <form action="/examples/actions/confirmation.php" method="post"> <div class="avatar"> <img src="http://cdn3.f-cdn.com/ppic/105311193/logo/26623052/TnqLe/profile_logo_.png" alt="yoatthmes"/> </div> <h2 class="text-center">Member Login</h2> <div class="social-btn text-center"> <a href="#" class="btn btn-primary btn-block btn-lg"><i class="fa fa-facebook"></i> Sign in with <b>Facebook</b></a> <a href="#" class="btn btn-info btn-block btn-lg"><i class="fa fa-twitter"></i> Sign in with <b>Twitter</b></a> <a href="#" class="btn btn-danger btn-block btn-lg"><i class="fa fa-google"></i> Sign in with <b>Google</b></a> </div> <div class="or-seperator"><i>or</i></div> <div class="form-group"> <input type="text" class="form-control" name="username" placeholder="Username" required="required"> </div> <div class="form-group"> <input type="password" class="form-control" name="password" placeholder="Password" required="required"> </div> <div class="form-group"> <button type="submit" class="btn btn-primary btn-lg btn-block login-btn">Sign in</button> </div> <p class="text-center small"><a href="#">Forgot Password?</a></p> </form> <p class="text-center small">Don't have an account? <a href="#">Sign up here!</a></p> </div> </body> </html>
body { color: #fff; background: #9e9e9e; font-family: 'Open Sans', sans-serif; } .form-control { min-height: 41px; background: #fff; border-color: #e3e3e3; box-shadow: none !important; border-radius: 4px; } .form-control:focus { border-color: #99c432; } .login-form { width: 310px; margin: 0 auto; padding: 100px 0 30px; } .login-form form { color: #999; border-radius: 10px; margin-bottom: 15px; background: #fff; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3); padding: 30px; position: relative; } .login-form h2 { font-size: 24px; color: #454959; margin: 45px 0 25px; font-family: 'Francois One', sans-serif; } .login-form .avatar { position: absolute; margin: 0 auto; left: 0; right: 0; top: -50px; width: 95px; height: 95px; border-radius: 50%; z-index: 9; background: #ffffff; padding: 15px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1); } .login-form .avatar img { width: 100%; } .login-form .btn { color: #fff; border-radius: 4px; text-decoration: none; transition: all 0.4s; line-height: normal; border: none; } .login-btn { font-size: 16px; font-weight: bold; background: #df4930; margin-bottom: 20px; } .login-btn:hover, .login-btn:active { background: #86ac2d !important; } .social-btn { padding-bottom: 15px; } .social-btn .btn { margin-bottom: 10px; font-size: 14px; text-align: left; } .social-btn .btn:hover { opacity: 0.8; text-decoration: none; } .social-btn .btn-primary { background: #507cc0; } .social-btn .btn-info { background: #64ccf1; } .social-btn .btn-danger { background: #df4930; } .social-btn .btn i { float: left; margin: 1px 10px 0 5px; min-width: 20px; font-size: 18px; } .or-seperator { height: 0; margin: 0 auto 20px; text-align: center; border-top: 1px solid #e0e0e0; width: 30%; } .or-seperator i { padding: 0 10px; font-size: 15px; text-align: center; background: #fff; display: inline-block; position: relative; top: -13px; z-index: 1; } .login-form a { color: #fff; text-decoration: underline; } .login-form form a { color: #999; text-decoration: none; } .login-form a:hover, .login-form form a:hover { text-decoration: none; } .login-form form a:hover { text-decoration: underline; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76