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
"Login Form By Sodanheang"
Bootstrap 4.1.1 Snippet by
Sodanheang
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
5.0K
 
6 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 ----------> <div id="login-container"> <h3>Account Login</h3> <hr> <div class="container"> <div class="row"> <div class="col-12"> <form action="" method="post"> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="email-label"> <i class="fa fa-user-circle" aria-hidden="true"></i> </span> </div> <input type="email" class="form-control" placeholder="Email" aria-label="Email" aria-describedby="email-label"> </div> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="password-label"> <i class="fa fa-key" aria-hidden="true"></i> </span> </div> <input type="password" class="form-control" placeholder="Password" aria-label="Password" aria-describedby="password-label"> </div> <label class="container-checkbox">Remember My Account <input type="checkbox" checked="checked"> <span class="checkmark"></span> </label> <div class="text-center"> <button type="submit" class="btn btn-customized">Login Account</button> </div> </form> </div> </div> </div> </div>
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"); @import url("https://fonts.googleapis.com/css?family=Cairo&display=swap"); body{ background-color: #004c40; } #login-container{ width: 450px; height: 375px; background-color: #00796b; border-radius: 10px; position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; } #login-container h3{ font-family: 'Cairo', sans-serif; font-weight: normal; text-align: center; color: #ffffff; font-size: 2rem; margin-top: 25px; margin-bottom: 5px; } #login-container hr{ margin-top: 15px; margin-bottom: 2.7rem; width: 250px; border-color: #ffffff; } #login-container .input-group{ padding-left: 30px; padding-right: 30px; } #login-container .input-group span{ background-color: #004c40; color: #ffffff; border-color: #004c40; border-radius: 10px 0px 0px 10px; } #login-container .input-group input{ border: 1px solid #00796b; border-radius: 0px 10px 10px 0px; font-family: 'Cairo', sans-serif; } #login-container .input-group input:focus{ box-shadow: none; border: 1px solid #00796b; } .container-checkbox { display: block; position: relative; padding-left: 55px; margin-bottom: 12px; cursor: pointer; font-size: 22px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; color: #ffffff; font-size: 15px; } /* Hide the browser's default checkbox */ .container-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } /* Create a custom checkbox */ .checkmark { position: absolute; top: 0; left: 30px; height: 20px; width: 20px; background-color: #eee; border-radius: 5px; } /* On mouse-over, add a grey background color */ .container-checkbox:hover input ~ .checkmark { background-color: #ccc; } /* When the checkbox is checked, add a blue background */ .container-checkbox input:checked ~ .checkmark { background-color: #004c40; } /* Create the checkmark/indicator (hidden when not checked) */ .checkmark:after { content: ""; position: absolute; display: none; } /* Show the checkmark when checked */ .container-checkbox input:checked ~ .checkmark:after { display: block; } /* Style the checkmark/indicator */ .container-checkbox .checkmark:after { left: 8px; top: 4px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .btn-customized{ background-color: #004c40; margin-top: 30px; color: #ffffff; border-color: #004c40; font-family: 'Cairo', sans-serif; border-radius: 10px; } .btn-customized:hover, .btn-customized:focus, .btn-customized:active{ color: #ffffff; border-color: #004c40; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76