Button center positioning via anchor - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Button center positioning via anchor

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 {<!--from   ww  w.  ja v a2  s  . c o m-->
   display: block;
   margin: 0 auto;
   background: red;
   text-align: center;
   padding: 5px 10px;
   width: 130px
}


      </style> 
 </head> 
 <body> 
  <a href="#" class="button">button</a>  
 </body>
</html>

Related Tutorials