HTML CSS examples for CSS Layout:Parent Container
Make three boxes inline, in the same line with content alignment
<html lang="en"> <head> <style> .wrapper>div { border:2px solid Chartreuse; float:left; width:251px; height:301px; margin:0 11px; position:relative; } .wrapper {<!-- w w w .ja v a 2 s .c o m--> margin:0 auto; width:831px; } .wrapper>div>input[type="submit"] { position:absolute; bottom:21px; left:26px; display:block; width:201px; } .clearfix:before, .clearfix:after { content:""; clear:both; display:block; } </style> </head> <body translate="no"> <div class="wrapper"> <div> <input type="submit"> </div> <div> <input type="submit"> </div> <div> <input type="submit"> </div> </div> <div class="clearfix"></div> </body> </html>