"Materialize css Login Form"
Bootstrap 3.3.0 Snippet by arshadadil

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html> <head> <title>Login Form</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css"> </head> <body> <div class="section"></div> <main> <center> <div class="z-depth-3 y-depth-3 x-depth-3 grey green-text lighten-4 row" style="display: inline-block; padding: 32px 48px 0px 48px; border: 1px; margin-top: 100px; solid #EEE;"> <div class="section"></div> <div class="section"></div> <div class='row'> <div class='input-field col s12'> <input class='validate' type="text" name='username' id='email' required /> <label for='email'>Username</label> </div> </div> <div class='row'> <div class='input-field col m12'> <input class='validate' type='password' name='password' id='password' required /> <label for='password'>Password</label> </div> <label style='float: right;'> <b style="color: #F5F5F5;">Forgot Password?</b> </label> </div> <br/> <center> <div class='row'> <button style="margin-left:65px;" type='submit' name='btn_login' class='col s6 btn btn-small white black-text waves-effect z-depth-1 y-depth-1'>Login</button> </div> </center> </div> </center> </main> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script> </body> </html>
body { display: flex; min-height: 100vh; flex-direction: column; } main { flex: 1 0 auto; } body { background: #fff; }

Related: See More


Questions / Comments: