Style button background and font - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Style button background and 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">

.btn1 {<!--from  www .  ja va2s  .co  m-->
   position: absolute;
   left: 50%;
   margin: 60px 0px 60px 0px;
   color: white;
   background: #ED7836;
   padding: 10px 30px 10px 30px;
   text-decoration: none;
   font-size: 20px;
   transform: translate(-50%, 0%);
}


      </style> 
 </head> 
 <body> 
  <button class="btn1"> Button </button>  
 </body>
</html>

Related Tutorials