Set button size and text font - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button text

Description

Set button size and text font

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">

.myButton {<!--  w w  w.  j a  v  a 2  s  .c o  m-->
   background: url("https://www.java2s.com/style/demo/Opera.png") no-repeat top left;
   height: 21px;
   width: 78px;
   text-align: center;
   color: #696969;
   font-family: Arial, Helvetica, sans-serif;
   font-size: 11px;
   border: medium none white;
}


      </style> 
 </head> 
 <body> 
  <button class="myButton">TEST</button>  
 </body>
</html>

Related Tutorials