Edit in JSFiddle


              
            
          
            
              
                
<div class="box1">box1</div>
<div class="box2">box2</div>
.box1{
    height:100px;
    background:#99FF33;
    float:left;
}
.box2{
    height:100px;
    background:#FF99FF;
}