Align font in middle of textfield - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Align font in middle of textfield

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">
.name {<!--  w  ww.  java 2 s .  c  om-->
   border:2px solid Chartreuse;
   height:51px;
   line-height:51px;
}
</style> 
 </head> 
 <body> 
  <div class="name">
    Single Line of Text 
  </div>  
 </body>
</html>

Related Tutorials