Answer the question
In order to leave comments, you need to log in
How to align col-md-2 to row in Bootstrap 3?
Good day!
It seems to have known bootstrap - but there was a question about the grid.
<div class="jumbotron">
<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<div class="mybox">
<img src="img/empty_photo.png" class="img-responsive center-block">
<p> Фио, должность </p>
</div>
</div>
<div class="col-md-2">
<div class="mybox">
<img src="img/empty_photo.png" class="img-responsive center-block">
<p> Фио, должность </p>
</div>
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Actually, everything was decided very simply ... I
added the container-narrow class with a width of 60% to the container class
and set col-md-3
<div class="jumbotron">
<div class="container-fluid">
<div class="row">
<div class="col-md-2 col-md-offset-2">
<div class="mybox">
<img src="img/empty_photo.png" class="img-responsive center-block">
<p> Фио, должность </p>
</div>
</div>
<div class="col-md-2 col-md-offset-4">
<div class="mybox">
<img src="img/empty_photo.png" class="img-responsive center-block">
<p> Фио, должность </p>
</div>
</div>
</div>
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question