M
M
MRcracker2019-10-20 22:35:11
css
MRcracker, 2019-10-20 22:35:11

How to make buttons on the same level?

There is a small piece of code that is made according to the bootstrap grid. It has text and a button. How to make the buttons be on the same level regardless of the amount of text?
I kind of figured out how to do it on flexbox without the bootstrap grid, but the task is to solve this problem with the bootstrap grid because it is in the project. Thank you all for your replies :))))

<div class="row">
          <div class="col-lg-3">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde a minus obcaecati ex eligendi itaque doloribus saepe! Cum, tenetur error.</p>
            <button>Click</button>
          </div>

          <div class="col-lg-3">
            <p>Lorem ipsum.</p>
            <button>Click</button>
          </div>
        </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrej Sharapov, 2019-10-20
@MRcracker

if you figured it out, then what's the problem with looking for the same properties in bootstrap?
https://getbootstrap.com/docs/4.3/utilities/flex/#...

D
Dymok, 2019-10-20
@UnluckySerivelha

Probably the class will helpalign-items-center

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question