How to make a row jump in a row

I want my div to jump to the next line, although there is enough space in the line to stay there. I have three boxes in a row, and I'm interested in the last box jumping to the next row. Each box is defined by itself in its own class. I have now added <br/>, but I am looking for a way to use this with CSS.

I tried using a display: blockdiv in the second class, but it makes it jump over also the line, which is not what I want.

Any suggestions?

+3
source share
2 answers

Just add a div to the second class, clear:rightor you can add a div to the third class, clear:leftboth should do the trick.

+5
source

Try using the float and clear (both) CSS properties.

+1
source

Source: https://habr.com/ru/post/1792207/


All Articles