The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Float items Re: Float items


Here is another option for you:

It uses @HugoGiraudel’s concept, @wolfcry911’s technique and some slight changes/additions of my own: mainly, the use of inline-block and text-align center to ensure that the list will adapt (and stay centered) if the number of list items changes.

UPDATE: I have also configured it to scroll horizontally once the viewport isn’t wide enough!