E
E
Egor Ogurtsov2018-08-19 11:22:10
css
Egor Ogurtsov, 2018-08-19 11:22:10

Why doesn't overflow work in .row (bootstrap4/flex)?

The task is to build a grid of blocks, and in some cases the blocks must be larger than the cell size in height and run into the bottom row.
If one row - no problem. If there are several rows, the bottom row overlaps the enlarged cell. How to fix?
Working example
https://jsfiddle.net/6t9eru1d/10/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ixon, 2018-08-19
@ixon

Try to explicitly set the height through height, add properties to the block:

overflow: hidden;
height: 170px;

https://jsfiddle.net/6t9eru1d/12/
Use Masonry.js if you want to remove the spacing between top and bottom row boxes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question