Center Align Form In Bootstrap
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Bootstrap Form Field Validation</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <style type="text/css"> .custom-centered{ margin:0 auto; width:300px; } </style> </head> <body> <div class="content"> <div class="col-lg-1"> <form role="form" class="custom-centered" > <div class="form-group"> <label for="firstname">Email</label> <input type="text" name= "Email" class="form-control" id="email" placeholder="Enter Email.."> </div> <div class="form-group"> <label for="firstname">Password</label> <input type="password" name="Password" class="form-control" id="password" placeholder="Enter Password"> </div> <button type="submit" class="btn btn-primary">Login</button> </form> </div> </div> </body> </html>
<html> <head> <title>Bootstrap Form Field Validation</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <style type="text/css"> .custom-centered{ margin:0 auto; width:300px; } </style> </head> <body> <div class="content"> <div class="col-lg-1"> <form role="form" class="custom-centered" > <div class="form-group"> <label for="firstname">Email</label> <input type="text" name= "Email" class="form-control" id="email" placeholder="Enter Email.."> </div> <div class="form-group"> <label for="firstname">Password</label> <input type="password" name="Password" class="form-control" id="password" placeholder="Enter Password"> </div> <button type="submit" class="btn btn-primary">Login</button> </form> </div> </div> </body> </html>
Copyrights@tutorialsplane.com