Thumbnails
By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.
Highly customizable
With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.
Why use thumbnails
Thumbnails (previously .media-grid
up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.
Simple, flexible markup
Thumbnail markup is simple—a ul
with any number of li
elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.
Uses grid column sizes
Lastly, the thumbnails component uses existing grid system classes—like .span2
or .span3
—for control of thumbnail dimensions.
Short Codes
- <ul class="thumbnails">
- <li class="span4">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/300x200" alt="">
- </a>
- </li>
- ...
- </ul>
For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a>
for a <div>
like so:
- <ul class="thumbnails">
- <li class="span4">
- <div class="thumbnail">
- <img src="http://placehold.it/300x200" alt="">
- <h3>Thumbnail label</h3>
- <p>Thumbnail caption...</p>
- </div>
- </li>
- ...
- </ul>
More examples
Explore all your options with the various grid classes available to you. You can also mix and match different sizes.
Be With Us
This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
Tel 0033 1 77 62 54 10
QuesCom SAS au capital de 100.200 € Siret 793 176 777 00019 – RCS Nanterre 793 176 777 - TVA Intra communautaire FR 63 793176777
QuesCom ™ - Les logiciels QuesCom ont fait l’objet d'un copyright déposé.