Align a button next to a div - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Align a button next to a div

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <style type="text/css">

.glow {<!-- ww w  .j  a v a2  s. c o  m-->
   font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
   font-size: 16px;
   color: #000000;
   background-color: rgba(255, 255, 255, 1);
   padding: 15px;
   display: inline-block;
   text-align: left;
   border-left-width: 3px;
   border-left-color: aqua;
   border-left-style: inset;
   width: 90%;
   box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.05) inset, 0px 0px 10px rgba(82, 168, 236, 0.6);
}
.button {
   width: 20%;
   padding-bottom: 24px;
   float: right;
   vertical-align: middle;
   text-align: center;
}


      </style> 
 </head> 
 <body> 
  <div class="glow"> 
   <div style="width: 70%;" class="mktoText" mktoname="Text" id="text2"> 
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p> 
   </div> 
   <div class="button">
     BUTTON HERE 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials