HTML CSS examples for CSS Form:input button text
Set button size and text font
<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>