#wrapper{ width:auto; height:auto; background:red; float:left; paddign-top:10px; padding-right:10px; padding-bottom:10px; } .cube{ width:100px; height:100px; float:left; background:blue; margin-left:10px; }