HTML CSS examples for CSS Layout:Text
Align font in middle of textfield
<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>