CSS float left not working right

DIV is a block element so you can give float or inline-block to your right div to take its actual width like this: EDIT: answer your comment below if you give float to the divs then you have to clear its parent like this :

tech