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