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

#132909
wolfcry911
Participant

put a border on .portfolioitem and you’ll see what’s happening.

Two quick solutions:

1) add this to your css

.portfolioitem:nth-child(3n+1) {
clear: left;
}

_or_

2) change the float: left to display: inline-block in .portfolioitem