Leave no Extra spacing between buttons - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Leave no Extra spacing between buttons

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

#aWrapper .buttons{<!--from w  w w.  j  av a2  s . c  o  m-->
   display: inline-block;
   border: 1px solid black;
   margin: 0;
   float: left;
}
#aWrapper{
   clear: both;
}


      </style> 
 </head> 
 <body> 
  <div id="aWrapper"> 
   <button class="buttons">Button 1</button> 
   <button class="buttons">Button 2</button> 
  </div>  
 </body>
</html>

Related Tutorials