Search This Blog

Wednesday 30 July 2014

Best Login Page Design in HTML, CSS with Source Code

<html>
<head>
<meta charset="utf-8">
<title>Best Login Page design in html and css</title>
<style type="text/css">
body {
background-color#f4f4f4;
color#5a5656;
font-family'Open Sans', Arial, Helvetica, sans-serif;
font-size16px;
line-height1.5em;
}
a { text-decorationnone; }
h1 { font-size1em; }
h1p {
margin-bottom10px;
}
strong {
font-weightbold;
}
.uppercase { text-transformuppercase; }

/* ---------- LOGIN ---------- */
#login {
margin50px auto;
width300px;
}
form fieldset input[type="text"]input[type="password"] {
background-color#e5e5e5;
bordernone;
border-radius3px;
-moz-border-radius3px;
-webkit-border-radius3px;
color#5a5656;
font-family'Open Sans', Arial, Helvetica, sans-serif;
font-size14px;
height50px;
outlinenone;
padding0px 10px;
width280px;
-webkit-appearance:none;
}
form fieldset input[type="submit"] {
background-color#008dde;
bordernone;
border-radius3px;
-moz-border-radius3px;
-webkit-border-radius3px;
color#f4f4f4;
cursorpointer;
font-family'Open Sans', Arial, Helvetica, sans-serif;
height50px;
text-transformuppercase;
width300px;
-webkit-appearance:none;
}
form fieldset a {
color#5a5656;
font-size10px;
}
form fieldset a:hover { text-decorationunderline; }
.btn-round {
background-color#5a5656;
border-radius50%;
-moz-border-radius50%;
-webkit-border-radius50%;
color#f4f4f4;
displayblock;
font-size12px;
height50px;
line-height50px;
margin30px 125px;
text-aligncenter;
text-transformuppercase;
width50px;
}
.facebook-before {
background-color#0064ab;
border-radius3px 0px 0px 3px;
-moz-border-radius3px 0px 0px 3px;
-webkit-border-radius3px 0px 0px 3px;
color#f4f4f4;
displayblock;
floatleft;
height50px;
line-height50px;
text-aligncenter;
width50px;
}
.facebook {
background-color#0079ce;
bordernone;
border-radius0px 3px 3px 0px;
-moz-border-radius0px 3px 3px 0px;
-webkit-border-radius0px 3px 3px 0px;
color#f4f4f4;
cursorpointer;
height50px;
text-transformuppercase;
width250px;
}
.twitter-before {
background-color#189bcb;
border-radius3px 0px 0px 3px;
-moz-border-radius3px 0px 0px 3px;
-webkit-border-radius3px 0px 0px 3px;
color#f4f4f4;
displayblock;
floatleft;
height50px;
line-height50px;
text-aligncenter;
width50px;
}
.twitter {
background-color#1bb2e9;
bordernone;
border-radius0px 3px 3px 0px;
-moz-border-radius0px 3px 3px 0px;
-webkit-border-radius0px 3px 3px 0px;
color#f4f4f4;
cursorpointer;
height50px;
text-transformuppercase;
width250px;
}
</style>
</head>
<body>
<div id="login">
<h1><strong>Welcome.</strong> Please login.</h1>
<form action="javascript:void(0);" method="get">
<fieldset>
<p><input type="text" required value="Username" onBlur="if(this.value=='')this.value='Username'"onFocus="if(this.value=='Username')this.value='' "></p>
<p><input type="password" required value="Password" onBlur="if(this.value=='')this.value='Password'"onFocus="if(this.value=='Password')this.value='' "></p>
<p><a href="#">Forgot Password?</a></p>
<p><input type="submit" value="Login"></p>
</fieldset>
</form>
<p><span class="btn-round">or</span></p>
<p>
<a class="facebook-before"></a>
<button class="facebook">Login Using Facbook</button>
</p>
<p>
<a class="twitter-before"></a>
<button class="twitter">Login Using Twitter</button>
</p>
</div> <!-- end login -->
</body>
</html>

No comments:

Post a Comment