Aligning a button center middle with long text - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Aligning a button center middle with long text

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">
div {<!--  ww  w.ja  va 2  s  .  c  o  m-->
   text-align:center;
}

button {
   position:absolute;
   top:51%;
   left:calc(51% - 126px);
   width:251px;
}
</style> 
 </head> 
 <body> 
  <div> 
   <button>Load my random useless data</button> 
  </div>  
 </body>
</html>

Related Tutorials