Responsive images


<img src="https://templates.iqonic.design/glare/laravel/public/images/small/img-1.jpg" class="img-fluid rounded" alt="Responsive image">

Images in Bootstrap are made responsive with .img-fluid. max-width: 100%; and height: auto; are applied to the image so that it scales with the parent element.

Responsive image

Equal-width multi-row


<div class="media">
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/1.jpg" class="mr-3 avatar-70 img-fluid rounded" alt="#">
   <div class="media-body">
      <h5 class="mt-0">Media heading</h5>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
   </div>
</div>
<div class="media">
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/2.jpg" class="mr-3 avatar-70 img-fluid rounded" alt="#">
   <div class="media-body">
      <h5 class="mt-0">Media heading</h5>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
      <div class="media mt-3">
         <a class="mr-3" href="#">
         <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/3.jpg" alt="#" class="avatar-70 img-fluid rounded">
         </a>
         <div class="media-body">
            <h5 class="mt-0">Media heading</h5>
            Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
         </div>
      </div>
   </div>
</div>

Create equal-width columns that span multiple rows by inserting a .w-100 where you want the columns to break to a new line. Make the breaks responsive by mixing the .w-100 with some responsive display utilities.

#
Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

#
Media heading

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

#
Media heading
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Order


<div class="media mb-5">
   <div class="media-body">
      <h5 class="mt-0 mb-1">Media object</h5>
      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
   </div>
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/09.jpg" class="ml-3 avatar-70 img-fluid rounded" alt="#">
</div>
<div class="media mb-5">
   <div class="media-body">
      <h5 class="mt-0 mb-1">Center-aligned media</h5>
      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
   </div>
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/10.jpg" class="align-self-center mr-3 avatar-70 img-fluid rounded" alt="#">
</div>
<div class="media">
   <div class="media-body">
      <h5 class="mt-0 mb-1">Bottom-aligned media</h5>
      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
   </div>
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/11.jpg" class="align-self-end mr-3 avatar-70 img-fluid rounded" alt="#">
</div>
</div>

Change the order of content in media objects by modifying the HTML itself, or by adding some custom flexbox CSS to set the order property (to an integer of your choosing).

Media object
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
#
Center-aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
#
Bottom-aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
#

Image thumbnails


<ul class="list-unstyled p-0 m-0 row">
   <li class="col-lg-4 col-md-6 col-sm-6 mt-2"><img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/10.jpg" class="img-thumbnail w-100 img-fluid rounded" alt="Responsive image"></li>
   <li class="col-lg-4 col-md-6 col-sm-6 mt-2"><img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/11.jpg" class="rounded w-100 img-fluid rounded" alt="Responsive image"></li>
   <li class="col-lg-4 col-md-6 col-sm-6 mt-2"><img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/12.jpg" class="rounded w-100 img-fluid rounded" alt="Responsive image"></li>
</ul>

In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.

  • Responsive image
  • Responsive image
  • Responsive image

Image thumbnails


<img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/13.jpg" class=" mt-2 img-fluid rounded" alt="Responsive image">
<img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/14.jpg" class=" mt-2 img-fluid rounded float-right" alt="Responsive image">

In addition to our border-radius utilities, you can use .img-thumbnail to give an image a rounded 1px border appearance.

Responsive image Responsive image

Media object


<div class="media mb-4">
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/09.jpg" class="align-self-start mr-3 avatar-70 img-fluid rounded" alt="#">
   <div class="media-body">
      <h5 class="mt-0">Top-aligned media</h5>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
   </div>
</div>
<div class="media mb-4">
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/10.jpg" class="align-self-center mr-3 avatar-70 img-fluid rounded" alt="#">
   <div class="media-body">
      <h5 class="mt-0">Center-aligned media</h5>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
   </div>
</div>
<div class="media">
   <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/11.jpg" class="align-self-end mr-3 avatar-70 img-fluid rounded" alt="#">
   <div class="media-body">
      <h5 class="mt-0">Bottom-aligned media</h5>
      <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
   </div>
</div>

The images or other media can be aligned top, middle, or bottom. The default is top aligned.

#
Top-aligned media

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

#
Center-aligned media

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

#
Bottom-aligned media

Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

Media list


<ul class="list-unstyled">
   <li class="media">
      <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/12.jpg" class="mr-3 avatar-70 img-fluid rounded" alt="#">
      <div class="media-body">
         <h5 class="mt-0 mb-1">List-based media object</h5>
         Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
      </div>
   </li>
   <li class="media my-4">
      <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/13.jpg" class="mr-3 avatar-70 img-fluid rounded" alt="#">
      <div class="media-body">
         <h5 class="mt-0 mb-1">List-based media object</h5>
         Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
      </div>
   </li>
   <li class="media">
      <img src="https://templates.iqonic.design/glare/laravel/public/images/page-img/14.jpg" class="mr-3 avatar-70 img-fluid rounded" alt="#">
      <div class="media-body">
         <h5 class="mt-0 mb-1">List-based media object</h5>
         Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
      </div>
   </li>
</ul>

Because the media object has so few structural requirements, you can also use these classes on list HTML elements. On your <ul> or <ol>, add the .list-unstyled to remove any browser default list styles, and then apply .media to your <li>s. As always, use spacing utilities wherever needed to fine tune.

  • #
    List-based media object
    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
  • #
    List-based media object
    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
  • #
    List-based media object
    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.