Page 1 of 1

How do I justify these DIVs, but line them up?

Posted: Fri Oct 17, 2014 9:37 am
by simonmlewis
http://jsfiddle.net/thirtydot/EDp8R/

This works really nicely. But, when there are just 2-3 on the next row, it's terrible.

So I want it to justify when it's a full fow of six, but when it's less, to just line up like a 'float'.

Any nice way of doing that?
I did try doing it with margins, and on the sixth DIV, have no right margin, but even then it can never be perfect.

So I want each row to be justified to left and right, but also... to line up!