Quantcast
Channel: Wrap a row of blocks in the middle instead of end (CSS/JS/jQ) - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Wrap a row of blocks in the middle instead of end (CSS/JS/jQ)

$
0
0

How can a row of inline-blocks be wrapped by a shrinking parent resulting in equal (or almost equal) rows?

So instead of wrapping like this:

enter image description here

wrap like this:

enter image description here

And if there's an uneven number of blocks, like this:

enter image description here


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images