To center multiple floats rows you have to center them manually. So I think the best solution is using display: inline
and center them by setting the parent element to have a text-align: center
.
And to clear or make a new row, I would do something like this:
li:nth-child(5):after {
content: "";
display: block;
}