LOG IN FORM IN HTML AND CSS

 


<html><header>
    <title>Log In form</title>
    <style>
        @import url(https://fonts.googleapis.com/css?family=Open+Sans);
.btn { displayinline-block; *displayinline; *zoom1padding4px 10px 4pxmargin-bottom0font-size13pxline-height18pxcolor#333333text-aligncenter;text-shadow0 1px 1px rgba(2552552550.75); vertical-alignmiddlebackground-color#f5f5f5background-image-moz-linear-gradient(top#ffffff#e6e6e6); background-image: -ms-linear-gradient(top#ffffff#e6e6e6); background-image-webkit-gradient(linear0 00 100%from(#ffffff), to(#e6e6e6)); background-image-webkit-linear-gradient(top#ffffff#e6e6e6); background-image-o-linear-gradient(top#ffffff#e6e6e6); background-imagelinear-gradient(top#ffffff#e6e6e6); background-repeatrepeat-xfilter: progid:dximagetransform.microsoft.gradient(startColorstr=#ffffff, endColorstr=#e6e6e6, GradientType=0); border-color#e6e6e6 #e6e6e6 #e6e6e6border-colorrgba(0000.1rgba(0000.1rgba(0000.25); border1px solid #e6e6e6-webkit-border-radius4px-moz-border-radius4pxborder-radius4px-webkit-box-shadowinset 0 1px 0 rgba(2552552550.2), 0 1px 2px rgba(0000.05); -moz-box-shadowinset 0 1px 0 rgba(2552552550.2), 0 1px 2px rgba(0000.05); box-shadowinset 0 1px 0 rgba(2552552550.2), 0 1px 2px rgba(0000.05); cursorpointer; *margin-left.3em; }
.btn:hover.btn:active.btn.active.btn.disabled.btn[disabled] { background-color#e6e6e6; }
.btn-large { padding9px 14pxfont-size15pxline-heightnormal-webkit-border-radius5px-moz-border-radius5pxborder-radius5px; }
.btn:hover { color#333333text-decorationnonebackground-color#e6e6e6background-position0 -15px-webkit-transition: background-position 0.1s linear-moz-transition: background-position 0.1s linear-ms-transition: background-position 0.1s linear-o-transition: background-position 0.1s lineartransition: background-position 0.1s linear; }
.btn-primary.btn-primary:hover { text-shadow0 -1px 0 rgba(0000.25); color#ffffff; }
.btn-primary.active { colorrgba(2552552550.75); }
.btn-primary { background-color#4a77d4background-image-moz-linear-gradient(top#6eb6de#4a77d4); background-image: -ms-linear-gradient(top#6eb6de#4a77d4); background-image-webkit-gradient(linear0 00 100%from(#6eb6de), to(#4a77d4)); background-image-webkit-linear-gradient(top#6eb6de#4a77d4); background-image-o-linear-gradient(top#6eb6de#4a77d4); background-imagelinear-gradient(top#6eb6de#4a77d4); background-repeatrepeat-xfilter: progid:dximagetransform.microsoft.gradient(startColorstr=#6eb6de, endColorstr=#4a77d4, GradientType=0);  border1px solid #3762bctext-shadow1px 1px 1px rgba(0,0,0,0.4); box-shadowinset 0 1px 0 rgba(2552552550.2), 0 1px 2px rgba(0000.5); }
.btn-primary:hover.btn-primary:active.btn-primary.active.btn-primary.disabled.btn-primary[disabled] { filternonebackground-color#4a77d4; }
.btn-block { width100%display:block; }

* { -webkit-box-sizing:border-box-moz-box-sizing:border-box-ms-box-sizing:border-box-o-box-sizing:border-boxbox-sizing:border-box; }

html { width100%height:100%overflow:hidden; }

body { 
  width100%;
  height:100%;
  font-family'Open Sans'sans-serif;
  background#092756;
  background-moz-radial-gradient(0% 100%ellipse coverrgba(104,128,138,.410%,rgba(138,114,76,040%),-moz-linear-gradient(top,  rgba(57,173,219,.250%rgba(42,60,87,.4100%), -moz-linear-gradient(-45deg,  #670d10 0%#092756 100%);
  background-webkit-radial-gradient(0% 100%ellipse coverrgba(104,128,138,.410%,rgba(138,114,76,040%), -webkit-linear-gradient(top,  rgba(57,173,219,.250%,rgba(42,60,87,.4100%), -webkit-linear-gradient(-45deg,  #670d10 0%,#092756 100%);
  background-o-radial-gradient(0% 100%ellipse coverrgba(104,128,138,.410%,rgba(138,114,76,040%), -o-linear-gradient(top,  rgba(57,173,219,.250%,rgba(42,60,87,.4100%), -o-linear-gradient(-45deg,  #670d10 0%,#092756 100%);
  background: -ms-radial-gradient(0% 100%ellipse coverrgba(104,128,138,.410%,rgba(138,114,76,040%), -ms-linear-gradient(top,  rgba(57,173,219,.25) 0%,rgba(42,60,87,.4) 100%), -ms-linear-gradient(-45deg,  #670d10 0%,#092756 100%);
  background-webkit-radial-gradient(0% 100%ellipse coverrgba(104,128,138,.410%,rgba(138,114,76,040%), linear-gradient(to bottom,  rgba(57,173,219,.250%,rgba(42,60,87,.4100%), linear-gradient(135deg,  #670d10 0%,#092756 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3E1D6D', endColorstr='#092756',GradientType=1 );
}
.login { 
  positionabsolute;
  top50%;
  left50%;
  margin-150px 0 0 -150px;
  width:300px;
  height:300px;
}
.login h1 { color#ffftext-shadow0 0 10px rgba(0,0,0,0.3); letter-spacing:1pxtext-align:center; }

input { 
  width100%
  margin-bottom10px
  backgroundrgba(0,0,0,0.3);
  bordernone;
  outlinenone;
  padding10px;
  font-size13px;
  color#fff;
  text-shadow1px 1px 1px rgba(0,0,0,0.3);
  border1px solid rgba(0,0,0,0.3);
  border-radius4px;
  box-shadowinset 0 -5px 45px rgba(100,100,100,0.2), 0 1px 1px rgba(255,255,255,0.2);
  -webkit-transition: box-shadow .5s ease;
  -moz-transition: box-shadow .5s ease;
  -o-transition: box-shadow .5s ease;
  -ms-transition: box-shadow .5s ease;
  transition: box-shadow .5s ease;
}
input:focus { box-shadowinset 0 -5px 45px rgba(100,100,100,0.4), 0 1px 1px rgba(255,255,255,0.2); }
    </style>
</header>
<body>

<div class="login">
    <h1>Login</h1>
      <form method="post">
        <input type="text" name="u" placeholder="Username" required="required" />
          <input type="password" name="p" placeholder="Password" required="required" />
          <button type="submit" class="btn btn-primary btn-block btn-large">Let me in.</button>
      </form>
  </div>
  
  </body>
  </html>








Post a Comment

0 Comments