Z
Z
Zubkov Fedor2019-01-07 23:48:04
HTML
Zubkov Fedor, 2019-01-07 23:48:04

How to align text blocks in height?

Hello. On the site tendeal.ru , in the "For whom" block, the texts “master a new channel”, “close tasks”, “put on autopilot” move down - how can they be aligned so that they start at the top and not at different levels?
5c33bae94a6fb113522566.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lukoie, 2019-01-08
@flareprj

This effect gives you

.sec-5 .dly-kogo .col-md-4 {
    justify-content: space-between;
}

In order for the text to be at equal distance in height, do the following for the heading:
h4 {
    min-height: 4rem;
}

Well, press the buttons down to the position absolute or flex.
And the easiest way is to insert a div with the .align-self-end class before the button, and the div with the button has the .align-items-end class
like this:
instead of
<div class="btn-wrap"><a class="btn" href="#" data-toggle="modal" data-target="#exampleModal">
Это я
</a></div>
</div>

need like this:
<div class="col align-self-end">
<div class="btn-wrap align-items-end"><a class="btn" href="#" data-toggle="modal" data-target="#exampleModal">
Это я
</a></div>
</div>

then check it all on mobile just don't forget

I
inkShio, 2019-01-08
@inkShio

You can change it like this,
do it
on flex, and you can try this way
, you can also try the option with relative positioning to the parent, absolute heading, and then you also specify padding-top as a percentage to the parent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question