HTML CSS examples for CSS Form:input button layout
Place button element below the div floats
<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>