Home › Forums › CSS › One div doesn’t float left › Re: One div doesn’t float left
April 23, 2013 at 3:28 pm
#132910
Participant
Hm so that’s the only way ? I won’t be using nth child since IE8 and older doesnt support it and I dont wanna get into some side hacks to support it.
Also why is it that i cant use float left here ? I don’t get it really. Why is this happening to my divs here ?
THIS:
2) change the float: left to display: inline-block in .portfolioitem
doesn’t work since the first div and the last get messed up. I can solve this by adding height to .portfolioitem but thats not such a good solution since im going dynamic.