Y
Y
Yurii Kasian2020-07-12 08:21:08
Bootstrap
Yurii Kasian, 2020-07-12 08:21:08

How to align blocks (div) in bootstrap 4?

In the footer, I can’t align the blocks (div) in one line and that they would be in the center (horizontal).
split blocks on the bootstrap grid (col-lg-3, col-lg-6, col-lg-3)

<footer class="main-footer">
        <div class="container">
            <div class="row align-items-lg-center justify-content-lg-between">
                <div class="col-lg-3">
                    <div class="b-logo">
                        <img src="img/footer_logo.png" alt="">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="credits">
                        2020/Все права защищены
                    </div>
                    <div class="credits">
                        <span class="show-modal">Политика конфиденциальности</span>
                    </div>
                    <div class="col-lg-3">
                        <div class="b-contacts">
                            <div class="b-contacts__phone">
                                <img src="img/footer_call.png" alt="">
                            </div>
                            <div class="b-contacts__numbers">
                                <a href="tel:+749512321345">+7 (495) 12-321-345</a>
                                <a href="tel:+798512321345">+7 (985) 12-321-345</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>


.main-footer{
    background-color: #23aae2;
    padding-top: 31px;
    padding-bottom: 23px;
}

.show-modal{
    border-bottom: 1px dotted #d9d9d9;
    cursor: pointer;
}

.credits{
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: white;
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2020-07-12
@assistent1133

You have a column inserted into a column there, I think this is a typo and you need this:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question