V
V
Vovka Solovyov2012-04-05 02:07:45
css
Vovka Solovyov, 2012-04-05 02:07:45

Repositioning blocks from one to two columns in the old fashioned way

Tell me, is it possible to somehow concisely implement a permutation from one to two columns of blue blocks (fixed width, different height) relative to the main green (preferably stretched) when changing the browser width without using JS and media queries?

Stretches, the blocks are shuffled

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
azverin, 2012-04-05
@azverin

If you make blocks 1,2,...6 fixed width, set them to float:left, and make the column itself in% of the screen width, then when stretched and wide enough for two blocks, they will be in two columns. But the truth of beauty when laying will not work.

H
hom9k, 2012-04-05
@hom9k

The first option I have no idea how to do.
For the second option, play around with floats or with display:inline-block. Perhaps something will suit, but such stacking of blocks most likely will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question