Forums

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

Home Forums CSS One div doesn’t float left Re: One div doesn’t float left

#132914
wolfcry911
Participant

how is that display: inline-block messes up the first and last item? I tested and didn’t see any difference.

how many items could you potentially have? If, for example, you know you won’t have more than 12 items (or other number not too cumbersome) you could do something like this to satisfy older IE

.container div + div + div + div,
.container div + div + div + div + div + div + div,
.container div + div + div + div + div + div + div + div + div + div {
clear: left;
}

not pretty, but should work