A
A
Anton2020-04-20 09:10:17
css
Anton, 2020-04-20 09:10:17

Flex - all blocks of the same height, how to set all blocks to the same height?

Hello.
The task is simple, I did it, but there is a problem, one height if all the blocks are on the same line, and there is a second line and there are blocks according to the height of the tallest block, but how to make all the blocks in the lines be according to the height of the highest block.

Working example:
https://jsfiddle.net/3j6mfuwd/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
archelon, 2020-04-20
@archelon

Remove this property

.fc {
    align-items: center; 
}

and adjust the padding of the inner elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question