Use "display: table;" instead of float; trim CSS.