Justify button's widths inside 100% width container - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Justify button's widths inside 100% width container

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>  Ralph Mason</title> 
  <style>

.button-group {<!--from   w  w  w  .  jav a  2  s  . c o m-->
   display: flex;
}
button {
   flex: 1 100%;
}


      </style> 
 </head> 
 <body translate="no"> 
  <div class="button-group"> 
   <button>1</button> 
   <button>2</button> 
   <button>3</button> 
  </div>  
 </body>
</html>

Related Tutorials