L
L
Legioner9112015-01-14 12:03:20
css
Legioner911, 2015-01-14 12:03:20

Is there a right padding col-md-offset in bootstrap?

Hello, I'm learning bootstrap, and I'm faced with the task of positioning two blocks (one from the maiden, the other from the right in one line). Only one possibility came to mind, add col-md-offset-10 between them. It looks like I wanted, but the fact is that when I tried to add col-md-offset-5 to two blocks. I noticed that only the left indents are added. Tell me how to add more right indents to the bootstrap? And am I solving this problem with the positioning of blocks in the right direction or not? Thanks in advance for your reply.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Yudaev, 2015-01-15
@Alex_mc

In practice I don't use offset but empty blocks.
In your case, the easiest way is to add empty columns.

<div class="row">
    <div class="col-md-offset-1 col-md-10">
          Блок с отступом слева.
    </div>
    <div class="col-md-1">
    </div>
</div>

just make sure your css columns have min-height: 1px;

D
Damir Aushenov, 2015-01-14
@yespeace

<div class="row">
    <div class="col-md-4">
        <h2>Левый блок</h2>
        <p>................</p>
    </div>
    <div class="col-md-4 col-md-offset-4">
        <h2>Правый блок</h2>
        <p>................</p>
    </div>
</div>

col-md-offset-4 Will offset the block to the right

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question