Center align placeholder in input text box - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input placeholder

Description

Center align placeholder in input text box

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
input::-webkit-input-placeholder
 {
   text-align:center;
}
</style> <!-- w w w . ja v  a2s  .com-->
 </head> 
 <body> 
  <input type="text" placeholder="asdf">  
 </body>
</html>

Related Tutorials