Rectangular image using bootstrap3

<div class="row">
    <div class="col-xs-3">
        <img src="image/t.png " class="img-responsive">
    </div>
    <div class="col-xs-9 ">
        <img src="image/b.png " class="img-responsive">
    </div>
</div>

I want the image to b.pngbe right aligned.

+4
source share
2 answers

You just need to add a class .pull-right. So it will be:

<div class="row">
     <div class="col-xs-3">
        <img src="image/t.png " class="img-responsive">
     </div>
     <div class="col-xs-9 ">
        <img src="image/b.png " class="pull-right img-responsive">
     </div>
   </div>
+16
source

Just add pull-rightbootstrap class

<div class="col-xs-9 ">
    <img src="image/b.png " class="img-responsive pull-right">
</div>
+3
source

Source: https://habr.com/ru/post/1624143/


All Articles