Input placeholder vertical align - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Input placeholder vertical align

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">
body {<!-- ww w  .  ja  v  a2  s  .c om-->
   background-color:Chartreuse;
}

input[type='text'] {
   background-color:yellow;
   border:4px solid blue;
   min-height:46px;
   line-height:46px;
   border-radius:7px;
   color:pink;
}

input[type='text']::-webkit-input-placeholder {
   font-size:26px;
   color:OrangeRed;
   text-transform:uppercase;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <form> 
   <input type="text" placeholder="Name"> 
  </form>  
 </body>
</html>

Related Tutorials