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 Login Modal Form with Icon"
Bootstrap 4.0.0 Snippet by
yoatthemes
4.0.0
login
modal
Preview
HTML
CSS
View Full Screen
Fork
Fork this
6.2K
 
2 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 Elegant Modal Login Modal Form with Avatar Icon Yoat Themes</title> <link href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.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="text-center"> <!-- Button HTML (to Trigger Modal) --> <a href="#myModal" class="trigger-btn" data-toggle="modal">Click to Open Login Panel</a> </div> <!-- Modal HTML --> <div id="myModal" class="modal fade"> <div class="modal-dialog modal-login"> <div class="modal-content"> <div class="modal-header"> <div class="avatar"> <img src="http://cdn3.f-cdn.com/ppic/105311193/logo/26623052/TnqLe/profile_logo_.png" alt="yoatthmes"> </div> <h4 class="modal-title">Member Login</h4> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <form action="/examples/actions/confirmation.php" method="post"> <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">Login</button> </div> </form> </div> <div class="modal-footer"> <a href="#">Forgot Password?</a> </div> </div> </div> </div> </body> </html>
body { font-family: 'Varela Round', sans-serif; } .modal-login { color: #e82426; width: 350px; } .modal-login .modal-content { padding: 20px; border-radius: 5px; border: none; } .modal-login .modal-header { border-bottom: none; position: relative; justify-content: center; } .modal-login h4 { text-align: center; font-size: 26px; margin: 30px 0 -15px; } .modal-login .form-control:focus { border-color: #70c5c0; } .modal-login .form-control, .modal-login .btn { min-height: 40px; border-radius: 3px; } .modal-login .close { position: absolute; top: -5px; right: -5px; } .modal-login .modal-footer { background: #ecf0f1; border-color: #dee4e7; text-align: center; justify-content: center; margin: 0 -20px -20px; border-radius: 5px; font-size: 13px; } .modal-login .modal-footer a { color: #e82426; } .modal-login .avatar { position: absolute; margin: 0 auto; left: 0; right: 0; top: -70px; width: 95px; height: 95px; z-index: 9; background: #808080; padding: 15px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1); } .modal-login .avatar img { width: 100%; } .modal-login.modal-dialog { margin-top: 80px; } .modal-login .btn { color: #fff; border-radius: 4px; background: #e82426; text-decoration: none; transition: all 0.4s; line-height: normal; border: none; } .modal-login .btn:hover, .modal-login .btn:focus { background: #45aba6; outline: none; } .trigger-btn { display: inline-block; margin: 100px auto; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76