Home › Forums › CSS › One div doesn’t float left › Re: One div doesn’t float left
April 23, 2013 at 3:40 pm
#132914
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