M
M
mumus2017-08-29 16:17:01
css
mumus, 2017-08-29 16:17:01

How would you design this block?

Gentlemen layout designers, how would you design this block visually. Blocks 17, the city as it is, it is unlikely that more will be added. I would not like to have large holes between the blocks, and so that everything looks somehow beautiful, symmetrical. But the problem is that there are 17 of them ... =)
In principle, you can make 6 in a row, it will turn out 6 6 5. I decided to write here, maybe someone will give a more brilliant idea?
388907df0ba64f428343a410dabef06f.jpg

Answer the question

In order to leave comments, you need to log in

7 answer(s)
C
campus1, 2017-08-29
@mumus

flex, justify, flex-wrap, block-width +- 20%

M
mumus, 2017-08-29
@mumus

45b8edf4e4504f7fb356427f4b7ba7bf.jpg
Set flex-basis:20% and justify-content:flex-start
In general, it turned out succinctly, but there are big holes due to the fact that somewhere there are more cities, somewhere less. But it doesn't get any better than that, right? )

E
enigma4689, 2017-08-29
@enigma4689

I think you put them on tight. In my opinion, the best option is to make 6 6 5, where 5 is aligned to the left

P
Pavel, 2017-08-29
@PavelMonro

You can make it more beautiful))
Display, for example, 2-3-4 cities, and add a More button below, add js / jquery spoiler code and make part of the list a spoiler

V
vaux, 2017-08-29
@vaux

And the user will run through this entire list in search of the city he needs? Isn't it easier to mark it all on a map? The grouping of cities along the highway is incomprehensible. Is it really more convenient than just a list of cities/towns sorted alphabetically? In addition, the logic of the arrangement of elements is not clear. It is quite obvious that the elements in such lists must be done in alphabetical order to make it easier to search. Ideally, you can add filters by district/highway if you really need to.
And if you want to get an answer regarding how best to arrange such data from a visual point of view, then do not put html, css, layout tags. Your question has nothing to do with layout (but you were given advice here only with regards to layout, not design). It is advisable to put such tags when you have already decided on the design and do not know how to lay out an already rendered element.

S
Sasha, 2017-08-29
@userAlexander

mumus play around with multi-columns column-count, if you don't like flex
it will give you the opportunity to get rid of holes under the blocks

A
Alexander Petrov, 2017-08-29
@Mirkom63

Well, I would make blocks, give them float: left and width as a percentage in the right ratio. Well, the percentage for different lines is different. and there are already div and ul li

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question