D
D
DarkByte20152018-06-18 13:50:54
css
DarkByte2015, 2018-06-18 13:50:54

How to make a block stack with overflow?

I need it to be like this:

item1item2item3
item4item5

Blocks (namely, block elements) can contain anything (in my case, form fields). The limiter is the width of the form. When there is an overflow, the element should wrap to another line. At first I started to typeset with a regular modular grid, but I got tired of choosing sizes. There are too many elements and they are different in width. Can you tell me how to do it on bootstrap?
Those. not to make explicit table markup (in any way) with rows, columns, etc. And just make one block and throw elements into it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton fon Faust, 2018-06-18
@bubandos

1) via float: left|right
2) via display: inline-block;
3) via flex + flex-wrap

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question