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

#132910
apart
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.