R
R
Rufix2018-03-20 01:09:54
Bootstrap
Rufix, 2018-03-20 01:09:54

How to align 2 divs on the same line?

Screenshot: https://imgur.com/a/yPzzQ
I understand that this is overly simple, but I can't figure out how I can use bootstrap to align all elements on one line? In this case, "sansara" as a logo.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jupiter Max, 2018-03-20
@vardoLP

Use the bootstrap grid, by default it is divided into 12 sections, so divide the sections as you need

<div class="container">
        <div class="row">
            <div class="col-md-3">Это к примеру для логотипа</div>
            <div class="col-md-9">Это к примеру для меню</div>
        </div>
    </div>

N
NaN, 2018-03-20
@KornevaViktoria

In this case, you can set the logo to display: inline-block. And the navigation is float:right. Perhaps add clearfix to the parent block

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question