If you were using display: inline;
or display: inline-block;
on the li's, you can use white-space: nowrap
to prevent line breaks. I don't see any reason to use floats in this case.
Read about white-space here: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space