A
A
Alexey2015-12-09 11:43:47
css
Alexey, 2015-12-09 11:43:47

Vertical alignment?

Actually, you need to make up such a grid:
816407d25cef4f4b85e9540314954d3c.jpg
All blocks are the same width, but different heights. inline-block and float didn't solve the problem.
+ container width is floating.
ps Och looks good with column-count: auto, but columns are not suitable for a specific task.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SirMustache, 2015-12-09
@atdot

On pure CSS, only column-count, but the content will go:
[1] [4] [7]
[2] [5] [8]
[3] [6] [9]
From quick solutions, take a ready-made jQ plugin from the masonry type , of which there are already thousands.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question