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 Forms with tabs"
Bootstrap 4.1.1 Snippet by
bhavik1094
4.1.1
forms
login
tabs
Preview
HTML
CSS
View Full Screen
Fork
Fork this
46.4K
 
11 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 ----------> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="Styles/jquery-3.3.1.min.js" type="text/javascript"></script> <script src="Styles/bootstrap-4.1.0.min.js" type="text/javascript"></script> <link href="Styles/bootstrap-4.1.0.min.css" rel="stylesheet" type="text/css"/> <link href="Styles/MainStyle.css" rel="stylesheet" type="text/css"/> <title></title> </head> <body> <?php session_start(); ?> <div class="container register"> <div class="row"> <div class="col-md-12"> <ul class="nav nav-tabs nav-justified" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Login Form 1</a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Login Form 2</a> </li> </ul> <div class="tab-content" id="myTabContent"> <div class="tab-pane fade show active text-align form-new" id="home" role="tabpanel" aria-labelledby="home-tab"> <h3 class="register-heading">Login Form 1</h3> <div class="row register-form"> <div class="col-md-12"> <form method="post"> <div class="form-group"> <input type="text" name="LGform1_user" class="form-control" placeholder="Your Email *" value="" required=""/> </div> <div class="form-group"> <input type="password" name="LGform1_pwd" class="form-control" placeholder="Your Password *" value="" required=""/> </div> <div class="form-group"> <input type="submit" name="LGform1" class="btnContactSubmit" value="Login" /> <a href="ForgetPassword.php" class="btnForgetPwd" value="Login">Forget Password?</a> </div> </form> </div> </div> </div> <div class="tab-pane fade show text-align form-new" id="profile" role="tabpanel" aria-labelledby="profile-tab"> <h3 class="register-heading">Login Form 2</h3> <div class="row register-form"> <div class="col-md-12"> <form method="post"> <div class="form-group"> <input type="text" name="LGform2_user" class="form-control" placeholder="Your Email *" value="" required="" /> </div> <div class="form-group"> <input type="password" name="LGform2_pwd" class="form-control" placeholder="Your Password *" value="" required=""/> </div> <div class="form-group"> <input type="submit" name="LGform2" class="btnContactSubmit" value="Login" /> <a href="ForgetPassword.php" class="btnForgetPwd" value="Login">Forget Password?</a> </div> </form> </div> </div> </div> </div> </div> </div> </div> </body> </html>
.btnContactSubmit { width: 50%; border-radius: 1rem; padding: 1.5%; color: #fff; background-color: #0062cc; border: none; cursor: pointer; margin-right: 6%; background-color: white; color: blue; margin-top: 4%; } .register .nav-tabs .nav-link:hover{ border: none; } .text-align{ margin-top: -3%; margin-bottom: -9%; padding: 10%; margin-left: 30%; } .form-new{ margin-right: 22%; margin-left: 20%; } .register-heading{ margin-left: 21%; margin-bottom: 10%; color: #e9ecef; } .register-heading h1{ margin-left: 21%; margin-bottom: 10%; color: #e9ecef; } .btnLoginSubmit{ border: none; padding: 2%; width: 25%; cursor: pointer; background: #29abe2; color: #fff; } .btnForgetPwd{ cursor: pointer; margin-right: 5%; color: #f8f9fa; } .register{ background: -webkit-linear-gradient(left, #3931af, #00c6ff); margin-top: 3%; padding: 3%; border-radius: 2.5rem; } .nav-tabs .nav-link{ border: 1px solid transparent; border-top-left-radius: .25rem; border-top-right-radius: .25rem; color: white; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76