CSS for uniform form input heights - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

CSS for uniform form input heights

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,button {
   margin:0;
   padding:0;
   border:0;
   font-family:inherit;
   font-size:inherit;
   line-height:normal;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
   border:0;
   padding:0;
}

input,button {
   display:block;
   float:left;
   width:151px;
   font-size:41px;
}

input {<!--from   www. j av  a  2  s . c  o m-->
   background-color:Chartreuse;
}

button {
   background-color:yellow;
   color:blue;
}

body {
   font-size:3em;
   padding:4em;
   background-color:pink;
}

div {
   background-color:OrangeRed;
   padding:.6em
}
</style> 
 </head> 
 <body> 
  <input type="text" value=" the input value "> 
  <button>Lorem </button>  
 </body>
</html>

Related Tutorials