A Pen by hamza azri on CodePen.
Created
March 3, 2016 00:29
-
-
Save osfx/94bc9084a0484ef2ee3d to your computer and use it in GitHub Desktop.
simple login form using materializecss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col s6 offset-s3 z-depth-1" id="panell"> | |
<h5 id="title">Login Form</h5> | |
<form> | |
<div class="input-field" id="username"> | |
<input type="text" class="validate"> | |
<label for="username">Username</label> | |
</div> | |
<div class="input-field" id="password"> | |
<input type="password" class="validate"> | |
<label for="password">Password</label> | |
</div> | |
<p> | |
<input type="checkbox" id="remember"/> | |
<label for="remember" id="checkbox" >Remember me</label> | |
</p> | |
<a class="waves-effect waves-light btn" id="loginbtn">Login</a> | |
</form> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#panell{ | |
margin-top: 100px; | |
padding: 0px; | |
} | |
#loginbtn{ | |
float: right; | |
margin-bottom: 10px; | |
margin-right: 10px; | |
} | |
#title{ | |
background-color: #2bbbad; | |
color: white; | |
padding: 8px; | |
margin-top: 0px | |
} | |
form{ | |
padding:0px; | |
border-radius: 3px; | |
box-sizing: border-box; | |
} | |
#username,#password{ | |
margin-left: 20px; | |
margin-right: 20px; | |
} | |
#checkbox{ | |
margin-left: 30px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment