HTML CSS examples for CSS Form:input button layout
Position Button from the right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .options {<!--from ww w .j a v a2s . c o m--> height: 216px; width: 100%; } #options-buttons { height: 40px; width: 100%; position: relative; } /* Buttons */ .cancel_button { position: absolute; top: 3px; left: 8px; background-repeat: no-repeat; outline: none; } .okay_button { position: absolute; top: 3px; right: 8px; background-repeat: no-repeat; outline: none; } </style> </head> <body> <div class="options"> <div id="options-buttons"> <a id="cancel_button" class="cancel_button" href="#" title="Cancel">cancel</a> <a id="okay_button" class="okay_button" href="#" title="Okay">okay</a> </div> </div> </body> </html>