S
S
sanns2015-01-03 00:48:34
css
sanns, 2015-01-03 00:48:34

How to make blocks fill the container in several columns using css?

codepen.io/anon/pen/ZQLKYm
here, only the first two blocks have a blue background. How to fix?
need :
1 4
2 5
3
flexbox is fine, but, as I did not expect, it does not expand the container. Leaves by the size of the first block or something like that. Weird.
What are the ways to make dynamic filling in a column?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
trushka, 2015-01-03
@sanns

Yes.. Only js crutch comes to mind..
codepen.io/anon/pen/dGNZGV - there's jQuery for a shorter entry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question