Css link button with padding respecting top and bottom margins - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Css link button with padding respecting top and bottom margins

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. ja v a  2s  .c  o m-->
   background: #E48F8F;
   border: 0;
   padding: 15px 45px 15px 45px;
   background-color:DeepSkyBlue;
   color:white;
   font-family:'Gotham Book';
   font-size:15px;
   margin-top:30px;
   display:inline-block;
}


      </style> 
 </head> 
 <body> 
  <div class="side_bar"> 
   <h3>Title</h3> 
   <div class="separator"></div> 
   <div class="side_bar_item"> 
    <img src="https://www.java2s.com/style/demo/Safari.png"> 
    <h3>Test</h3> 
    <p>this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. </p> 
    <a href="#" class="button">Saiba Mais</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials