Padding inside a button element - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Padding inside a button element

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

button<!--   w  w w . jav a2s .com-->
{
   display: block;
   padding: 0px;
   margin: 0;
   width: 19px;
   height: 19px;
   border: 1px solid #000;
   border-radius: 5px;
}
button span.text {
   font-size: 11px;
   padding: 2px;
}


      </style> 
 </head> 
 <body> 
  <button> <span class="text">X</span> </button>  
 </body>
</html>

Related Tutorials