CSS input tag even length - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

CSS input tag even length

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
input {<!--from  w  ww  . j a va2s. c o  m-->
   -webkit-box-sizing:border-box;
   -moz-box-sizing:border-box;
   box-sizing:border-box;
}

.f1 {
   background:yellow;
   display:inline-block;
   width:441px;
   padding-top:21px;
   padding-left:21px;
   padding-right:21px;
   padding-bottom:0px;
   margin:11px;
   position:relative;
   left:91px;
   top:4px;
}

#id1, #id2 {
   padding:11px;
   width:271px;
   border:0;
}

#id2 {
   position:relative;
   top:-11px;
}

.btn {
   width:100px;
   padding-top:8px;
   padding-bottom:8px;
   position:relative;
   top:-91px;
   left:290px;
   font-family:'PT Sans Narrow', sans-serif;
   font-weight:701;
   border:0;
   background:Chartreuse;
   font-size:21px;
}
</style> 
 </head> 
 <body> 
  <section class="firstlog"> 
   <form class="f1"> 
    <h1 id="user">Lorem ipsum dolor sit </h1> 
    <p> <input id="id1"> </p> 
    <p> <input id="id2"> </p> 
    <input class="btn" type="submit" name="submit" value="LOGIN"> 
   </form> 
  </section>  
 </body>
</html>

Related Tutorials