Answer the question
In order to leave comments, you need to log in
How to adaptively align content in blocks of the same height?
Hello. There are two blocks of the same height, but I can't figure out how to make a "space" equal to the height of the content of the first block just after the p tag, that is, in fact, I just need to nail the button at the bottom, taking into account the indents inside the block, but adaptability is a problem. Help solve
Answer the question
In order to leave comments, you need to log in
The button must be a flex item, margin-top: auto;
so set it to the button will be pushed from above to the available height. The blocks will be the same height, provided that the alignment (along the transverse axis) of the flex container is stretch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question