I
I
It2021-06-25 18:25:15
css
It, 2021-06-25 18:25:15

How to stretch a part of a card by content?

There are three cards in a row, normal content inside, layout via flex-direction: column
Actually, in the description part, the content size is different, and as a result, the position of the buttons under the content constantly jumps. How can I correctly set the rubber size for this description so that the buttons are always pressed to the bottom of the card?
The card does not have a fixed height.
60d5f50737a35259581647.png

Demo - https://codepen.io/Highlander/pen/zYZgQKX

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2021-06-25
@IT_Highlander

Set margin-top: autofor Buttons

V
Vayni, 2021-06-25
@Vayni

Allow the text element to grow by setting flex: 1 1 auto;Then it pushes the button to the bottom.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question