HTML CSS examples for CSS Form:input button layout
Align horizontal buttons to the right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #switcher {<!--from www.j av a 2 s . c o m--> text-align: right; background: #CCC; } h3 { text-align: left; background: lightblue; } .button { display: inline-block; background-color: #55cc66; margin-right: 50px; padding: 5px; } </style> </head> <body> <div id="switcher"> <h3>Style Switcher</h3> <div class="button selected" id="switcher-default"> Default </div> <div class="button" id="switcher-narrow"> Narrow Column </div> <div class="button" id="switcher-large"> Large Print </div> </div> </body> </html>