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
"Basic Registration Form with the new Bootstrap 5 lib"
Bootstrap 4.1.1 Snippet by
Bootemplates
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
864
 
0 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 ----------> <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous"> <link rel="stylesheet" href="style.css"> <title>Hello, world!</title> </head> <body> <div class="body"> <div class="card login_div"> <h1>Register</h1> <hr> <form> <div class="row"> <div class="col"> <input type="text" class="form-control" placeholder="First name"> </div> <div class="col"> <input type="text" class="form-control" placeholder="Last name"> </div> </div> <div class="row"> <div class="input-group col"> <span class="input-group-text" id="username">@</span> <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="username"> </div> </div> <div class="row"> <div class="input-group col"> <input type="email" class="form-control" placeholder="Email"> </div> </div> <div class="row"> <div class="col-8"> <input type="text" class="form-control" placeholder="Street"> </div> <div class="col-4"> <input type="text" class="form-control" placeholder="Number"> </div> </div> <div class="row"> <div class="col-4"> <input type="text" class="form-control" placeholder="Post Code"> </div> <div class="col-8"> <input type="text" class="form-control" placeholder="Location"> </div> </div> <div class="row"> <div class="form-check" id="check"> <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault"> <label class="form-check-label" for="flexCheckDefault"> I agree to the <a href="#">Terms of service</a> </label> </div> </div> <div class="row"> <button type="submit" class="btn btn-success col">Register</button> <div class="col-7"></div> <button type="reset" class="btn btn-danger col">Reset</button> </div> </form> </div> </div> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script> </body> </html>
.body { width: 100vw; height: 100vh; background-color: #001f3f !important; } .login_div { margin: auto; margin-top: calc(50vh - 250px); height: 520px; width: 600px; } .login_div h1 { margin: 15px 25px; } .login_div hr { padding: 0; margin: 0 } .login_div form { margin-top: 20px } .login_div form .row { width: 80%; margin: auto; margin-top: 20px } #check { margin-left: 15px } a { color: gray; font-weight: bold; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76