5
5
5eppuku2020-05-08 11:12:22
css
5eppuku, 2020-05-08 11:12:22

How to make headings in blocks have the same height, regardless of the amount of text?

5eb5144b6e9b7704827199.png
The height of the blocks is already the same

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya, 2020-05-08
@rpsv

Set a fixed height for the headers themselves. If it's a very random value with JS (look for the max-height in a row and equal to the headers). You can define elements on the same line through offset.top - it must be the same.

P
princip31, 2020-05-08
@princip31

something like that in JS, just insert your class name instead of level-0

T
Type Programmer, 2020-05-08
@Oleg2002pr

You can make these cards wrap or wrap, and make it flex. Then all the divs in that block will depend on the height of the largest block. Then others will stretch with him. It seems that the question is understood)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question