<div style="margin: 0; display: inline-block; float: left;">first div</div> <div style="margin: 0; display: inline-block; float: left;">second div</div>