Position Button from the right - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Position Button from the right

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

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

Related Tutorials