Align a button contained within a div central and bottom - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Align a button contained within a div central and bottom

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

.coursebutton {<!--from  w w w. j  a va  2  s .  co  m-->
   display: inline-block;
   border-radius: 4px;
   background-color: #009ada;
   border: none;
   color: #FFFFFF;
   text-align: center;
   font-family: 'Raleway', sans-serif;
   text-transform: uppercase;
   font-size: 13px;
   padding: 9px;
   width: 100px;
   transition: all 0.5s;
   cursor: pointer;
   position: relative;
   left: 50%;
   transform: translateX(-50%);
}


      </style> 
 </head> 
 <body> 
  <div class="col_one_third col_one_third_even"> 
   <div class="feature-box fbox-plain"> 
    <div class="fbox-icon"> 
     <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
    </div> 
    <h3>ADVERTISING AND MEDIA</h3> 
    <p>Example example example example example example example example example example example example </p> 
    <button class="coursebutton" onclick="window.location.href = 'courseinfo/am.html';"> <span>Details </span> </button> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials