Use inline-block instead of float.