Place button element below the div floats - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Place button element below the div floats

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

div.boxes {<!--  w w w . j  a  v  a  2 s . c  om-->
   background: yellow;
   border: 1px solid #AAA;
   width: 80px;
   height: 80px;
   margin: 0 5px;
   float: left;
}

div.colored {
   background: green;
}

.clearfix:after {
   content: ".";
   display: block;
   clear: both;
   visibility: hidden;
   line-height: 0;
   height: 0;
}

.clearfix {
   display: block;
   clear: both;
}

      </style> 
 </head> 
 <body> 
  <div class="boxes"></div> 
  <div class="boxes" id="mover"></div> 
  <div class="boxes"></div> 
  <button class="clearfix" id="run">Run</button>  
 </body>
</html>

Related Tutorials