HTML CSS examples for CSS Form:input button layout
Leave no Extra spacing between buttons
<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>