Answer the question
In order to leave comments, you need to log in
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
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>
<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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question